]> git.lizzy.rs Git - rust.git/blob - src/test/ui/generic-associated-types/missing_lifetime_const.rs
Auto merge of #99612 - yanchen4791:issue-95079-fix, r=compiler-errors
[rust.git] / src / test / ui / generic-associated-types / missing_lifetime_const.rs
1 #![feature(generic_associated_types)]
2
3 trait Foo {
4     type Assoc<'a, const N: usize>;
5 }
6
7 fn foo<T: Foo>() {
8     let _: <T as Foo>::Assoc<3>;
9       //~^ ERROR  this associated type
10 }
11
12 fn main() {}