mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-17 09:23:05 +00:00
16 lines
368 B
Rust
16 lines
368 B
Rust
![]() |
#![feature(generic_const_exprs)]
|
||
|
//~^ WARN the feature `generic_const_exprs` is incomplete
|
||
|
|
||
|
struct DataWrapper<'static> {
|
||
|
//~^ ERROR invalid lifetime parameter name: `'static`
|
||
|
data: &'a [u8; Self::SIZE],
|
||
|
//~^ ERROR use of undeclared lifetime name `'a`
|
||
|
}
|
||
|
|
||
|
impl DataWrapper<'a> {
|
||
|
//~^ ERROR undeclared lifetime
|
||
|
const SIZE: usize = 14;
|
||
|
}
|
||
|
|
||
|
fn main(){}
|