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

9 lines
213 B
Rust
Raw Normal View History

//@ check-fail
2022-06-29 15:16:36 -05:00
struct Foo<'a> //~ ERROR parameter `'a` is never used [E0392]
{
2023-05-05 15:42:51 -05:00
_a: [u8; std::mem::size_of::<&'a mut u8>()] //~ ERROR generic parameters may not be used in const operations
2022-06-29 15:16:36 -05:00
}
pub fn main() {}