summaryrefslogtreecommitdiffstats
path: root/src/test/ui/const-generics/type-dependent/simple.rs
blob: 1b13133b5b970715f21cd233d70c0dba16a3c7c4 (plain)
1
2
3
4
5
6
7
8
9
// run-pass
struct R;

impl R {
    fn method<const N: u8>(&self) -> u8 { N }
}
fn main() {
    assert_eq!(R.method::<1u8>(), 1);
}