rust/tests/ui/limits/issue-55878.rs
2024-09-20 10:02:14 -07:00

9 lines
275 B
Rust

//@ build-fail
//@ normalize-stderr-64bit: "18446744073709551615" -> "SIZE"
//@ normalize-stderr-32bit: "4294967295" -> "SIZE"
//@ error-pattern: are too big for the target architecture
fn main() {
println!("Size: {}", std::mem::size_of::<[u8; u64::MAX as usize]>());
}