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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
182 B
Rust
Raw Normal View History

struct Foo<
'a,
const N: usize = {
let x: &'a ();
2023-05-05 15:42:51 -05:00
//~^ ERROR generic parameters may not be used in const operations
3
},
>(&'a ());
fn main() {}