]> git.lizzy.rs Git - rust.git/blob - tests/ui/const-generics/issue-46511.rs
Rollup merge of #106717 - klensy:typo, r=lcnr
[rust.git] / tests / ui / const-generics / issue-46511.rs
1 // check-fail
2
3 struct Foo<'a> //~ ERROR parameter `'a` is never used [E0392]
4 {
5     _a: [u8; std::mem::size_of::<&'a mut u8>()] //~ ERROR  a non-static lifetime is not allowed in a `const`
6 }
7
8 pub fn main() {}