summaryrefslogtreecommitdiffstats
path: root/src/test/ui/generic-associated-types/missing_lifetime_const.rs
blob: e3e78dd96f62bce481282300183829ba92fd664e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#![feature(generic_associated_types)]

trait Foo {
    type Assoc<'a, const N: usize>;
}

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

fn main() {}