fork/rust
git clone https://git.julia.blue/fork/rust
8d69840ab92
1.43.1
1error[E0637]: `&` without an explicit lifetime name cannot be used here 2 --> $DIR/const-param-elided-lifetime.rs:9:19 3 | 4LL | struct A<const N: &u8>; 5 | ^ explicit lifetime name needed here 6 7error[E0637]: `&` without an explicit lifetime name cannot be used here 8 --> $DIR/const-param-elided-lifetime.rs:13:15 9 | 10LL | impl<const N: &u8> A<N> { 11 | ^ explicit lifetime name needed here 12 13error[E0637]: `&` without an explicit lifetime name cannot be used here 14 --> $DIR/const-param-elided-lifetime.rs:14:21 15 | 16LL | fn foo<const M: &u8>(&self) {} 17 | ^ explicit lifetime name needed here 18 19error[E0637]: `&` without an explicit lifetime name cannot be used here 20 --> $DIR/const-param-elided-lifetime.rs:18:15 21 | 22LL | impl<const N: &u8> B for A<N> {} 23 | ^ explicit lifetime name needed here 24 25error[E0637]: `&` without an explicit lifetime name cannot be used here 26 --> $DIR/const-param-elided-lifetime.rs:21:17 27 | 28LL | fn bar<const N: &u8>() {} 29 | ^ explicit lifetime name needed here 30 31warning: the feature `const_generics` is incomplete and may cause the compiler to crash 32 --> $DIR/const-param-elided-lifetime.rs:6:12 33 | 34LL | #![feature(const_generics)] 35 | ^^^^^^^^^^^^^^ 36 | 37 = note: `#[warn(incomplete_features)]` on by default 38 39error: aborting due to 5 previous errors 40 41For more information about this error, try `rustc --explain E0637`.