体验新版 GitCode,发现更多精彩内容 >>
#![feature(generic_associated_types)] //~^ WARNING the feature trait Foo { type Assoc<'a, const N: usize>; } fn foo<T: Foo>() { let _: <T as Foo>::Assoc<3>; //~^ ERROR this associated type } fn main() {}