rust/tests/ui/const-generics/outer-lifetime-in-const-generic-default.rs

11 lines
176 B
Rust
Raw Normal View History

struct Foo<
'a,
const N: usize = {
let x: &'a ();
//~^ ERROR use of non-static lifetime `'a` in const generic
3
},
>(&'a ());
fn main() {}