summaryrefslogtreecommitdiffstats
path: root/tests/ui/generic-associated-types/missing_lifetime_const.rs
blob: 8b174b9e971e0a0f45f145e874d843ade3a12149 (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  this associated type
}

fn main() {}