]> git.lizzy.rs Git - rust.git/blob - tests/ui/generic-associated-types/missing_lifetime_const.rs
internally change regions to be covariant
[rust.git] / tests / ui / generic-associated-types / missing_lifetime_const.rs
1 trait Foo {
2     type Assoc<'a, const N: usize>;
3 }
4
5 fn foo<T: Foo>() {
6     let _: <T as Foo>::Assoc<3>;
7       //~^ ERROR  this associated type
8 }
9
10 fn main() {}