missing_lifetime_const.rs 222 字节
Newer Older
B
b-naber 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13
#![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() {}