rust/tests/ui/limits/issue-75158-64.rs
2024-02-16 20:02:50 +00:00

17 lines
166 B
Rust

//~ ERROR
//@ build-fail
//@ ignore-32bit
struct S<T> {
x: [T; !0],
}
pub fn f() -> usize {
std::mem::size_of::<S<u8>>()
}
fn main() {
let x = f();
}