summaryrefslogtreecommitdiffstats
path: root/tests/ui/const-generics/type-dependent/qpath.rs
blob: 2d678d0acd3f7b79451318010ef0e3be6866fc39 (plain)
1
2
3
4
5
6
7
8
9
// run-pass
struct A;
impl A {
    fn foo<const N: usize>() -> usize { N + 1 }
}

fn main() {
    assert_eq!(A::foo::<7>(), 8);
}