1 error[E0637]: `&` without an explicit lifetime name cannot be used here
2 --> $DIR/const-param-elided-lifetime.rs:9:19
4 LL | struct A<const N: &u8>;
5 | ^ explicit lifetime name needed here
7 error[E0637]: `&` without an explicit lifetime name cannot be used here
8 --> $DIR/const-param-elided-lifetime.rs:13:15
10 LL | impl<const N: &u8> A<N> {
11 | ^ explicit lifetime name needed here
13 error[E0637]: `&` without an explicit lifetime name cannot be used here
14 --> $DIR/const-param-elided-lifetime.rs:14:21
16 LL | fn foo<const M: &u8>(&self) {}
17 | ^ explicit lifetime name needed here
19 error[E0637]: `&` without an explicit lifetime name cannot be used here
20 --> $DIR/const-param-elided-lifetime.rs:18:15
22 LL | impl<const N: &u8> B for A<N> {}
23 | ^ explicit lifetime name needed here
25 error[E0637]: `&` without an explicit lifetime name cannot be used here
26 --> $DIR/const-param-elided-lifetime.rs:21:17
28 LL | fn bar<const N: &u8>() {}
29 | ^ explicit lifetime name needed here
31 warning: the feature `const_generics` is incomplete and may not be safe to use and/or cause compiler crashes
32 --> $DIR/const-param-elided-lifetime.rs:6:12
34 LL | #![feature(const_generics)]
37 = note: `#[warn(incomplete_features)]` on by default
38 = note: see issue #44580 <https://github.com/rust-lang/rust/issues/44580> for more information
40 error: aborting due to 5 previous errors; 1 warning emitted
42 For more information about this error, try `rustc --explain E0637`.