rustc/tests/ui/const-generics/outer-lifetime-in-const-generic-default.rs
2023-08-02 10:33:26 +02: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() {}