1 #![feature(const_generics)]
2 //~^ WARN the feature `const_generics` is incomplete and may cause the compiler to crash
4 struct A<const N: &u8>;
5 //~^ ERROR `&` without an explicit lifetime name cannot be used here
8 impl<const N: &u8> A<N> { //~ ERROR `&` without an explicit lifetime name cannot be used here
9 fn foo<const M: &u8>(&self) {}
10 //~^ ERROR `&` without an explicit lifetime name cannot be used here
13 impl<const N: &u8> B for A<N> {}
14 //~^ ERROR `&` without an explicit lifetime name cannot be used here
16 fn bar<const N: &u8>() {}
17 //~^ ERROR `&` without an explicit lifetime name cannot be used here