mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-01 03:03:40 +00:00
9 lines
208 B
Rust
9 lines
208 B
Rust
// 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() {}
|