]> git.lizzy.rs Git - rust.git/blob - tests/ui/const-generics/outer-lifetime-in-const-generic-default.rs
Auto merge of #106711 - albertlarsan68:use-ci-llvm-when-lld, r=jyn514
[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() {}