summaryrefslogtreecommitdiffstats
path: root/src/test/ui/const-generics/issues/issue-70273-assoc-fn.rs
blob: a76488249173ae434218d642333dc294fa7e3567 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// check-pass

trait T<const A: usize> {
    fn f();
}
struct S;

impl T<0usize> for S {
    fn f() {}
}

fn main() {
    let _err = <S as T<0usize>>::f();
}