rust/tests/ui/limits/issue-75158-64.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
164 B
Rust
Raw Normal View History

2021-01-28 01:27:48 -06:00
//~ 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();
}