mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 16:54:01 +00:00
17 lines
164 B
Rust
17 lines
164 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();
|
|
}
|