summaryrefslogtreecommitdiffstats
path: root/tests/ui/const-generics/issue-46511.rs
blob: 71c50e2f3f7f32c47eeb2566379c806516fb8b3f (plain)
1
2
3
4
5
6
7
8
// 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() {}