]> git.lizzy.rs Git - rust.git/blob - src/test/ui/generic-associated-types/missing_lifetime_const.rs
Rollup merge of #102854 - semarie:openbsd-immutablestack, r=m-ou-se
[rust.git] / src / test / 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() {}