|
| 1 | +error[E0262]: invalid lifetime parameter name: `'static` |
| 2 | + --> $DIR/generic_const_early_param.rs:4:20 |
| 3 | + | |
| 4 | +LL | struct DataWrapper<'static> { |
| 5 | + | ^^^^^^^ 'static is a reserved lifetime name |
| 6 | + |
| 7 | +error[E0261]: use of undeclared lifetime name `'a` |
| 8 | + --> $DIR/generic_const_early_param.rs:6:12 |
| 9 | + | |
| 10 | +LL | struct DataWrapper<'static> { |
| 11 | + | - help: consider introducing lifetime `'a` here: `'a,` |
| 12 | +LL | |
| 13 | +LL | data: &'a [u8; Self::SIZE], |
| 14 | + | ^^ undeclared lifetime |
| 15 | + |
| 16 | +error[E0261]: use of undeclared lifetime name `'a` |
| 17 | + --> $DIR/generic_const_early_param.rs:11:18 |
| 18 | + | |
| 19 | +LL | impl DataWrapper<'a> { |
| 20 | + | - ^^ undeclared lifetime |
| 21 | + | | |
| 22 | + | help: consider introducing lifetime `'a` here: `<'a>` |
| 23 | + |
| 24 | +warning: the feature `generic_const_exprs` is incomplete and may not be safe to use and/or cause compiler crashes |
| 25 | + --> $DIR/generic_const_early_param.rs:1:12 |
| 26 | + | |
| 27 | +LL | #![feature(generic_const_exprs)] |
| 28 | + | ^^^^^^^^^^^^^^^^^^^ |
| 29 | + | |
| 30 | + = note: see issue #76560 <https://github.com/rust-lang/rust/issues/76560> for more information |
| 31 | + = note: `#[warn(incomplete_features)]` on by default |
| 32 | + |
| 33 | +error: lifetime may not live long enough |
| 34 | + --> $DIR/generic_const_early_param.rs:6:20 |
| 35 | + | |
| 36 | +LL | data: &'a [u8; Self::SIZE], |
| 37 | + | ^^^^^^^^^^ requires that `'_` must outlive `'static` |
| 38 | + |
| 39 | +error: aborting due to 4 previous errors; 1 warning emitted |
| 40 | + |
| 41 | +Some errors have detailed explanations: E0261, E0262. |
| 42 | +For more information about an error, try `rustc --explain E0261`. |
0 commit comments