rust/tests/ui/const-generics/issue-46511.rs

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

9 lines
208 B
Rust
Raw Normal View History

2022-06-29 15:16:36 -05:00
// check-fail
struct Foo<'a> //~ ERROR parameter `'a` is never used [E0392]
{
_a: [u8; std::mem::size_of::<&'a mut u8>()] //~ ERROR a non-static lifetime is not allowed in a `const`
}
pub fn main() {}