summary refs log tree commit diff
path: root/tests/ui/borrowck/generic_const_early_param.rs
blob: f601e45d21feeb34c427ee8ec4f78c4883627f96 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#![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(){}