summaryrefslogtreecommitdiffstats
path: root/tests/ui/generic-associated-types/missing_lifetime_const.rs
blob: 6e395dfdec1fa59108bef24496a02e07228da6a6 (plain)
1
2
3
4
5
6
7
8
9
10
trait Foo {
    type Assoc<'a, const N: usize>;
}

fn foo<T: Foo>() {
    let _: <T as Foo>::Assoc<3>;
      //~^ ERROR  associated type
}

fn main() {}