mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 07:44:10 +00:00
17 lines
418 B
Rust
17 lines
418 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`
|
|
//~^^ ERROR lifetime may not live long enough
|
|
}
|
|
|
|
impl DataWrapper<'a> {
|
|
//~^ ERROR undeclared lifetime
|
|
const SIZE: usize = 14;
|
|
}
|
|
|
|
fn main(){}
|