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