]> git.lizzy.rs Git - rust.git/blob - tests/ui/const-generics/outer-lifetime-in-const-generic-default.rs
Rollup merge of #103702 - WaffleLapkin:lift-sized-bounds-from-pointer-methods-where...
[rust.git] / tests / ui / const-generics / outer-lifetime-in-const-generic-default.rs
1 struct Foo<
2     'a,
3     const N: usize = {
4         let x: &'a ();
5         //~^ ERROR use of non-static lifetime `'a` in const generic
6         3
7     },
8 >(&'a ());
9
10 fn main() {}