rust/tests/ui/const-generics/outer-lifetime-in-const-generic-default.rs
2023-01-11 09:32:08 +00:00

11 lines
176 B
Rust

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