rust/src/test/compile-fail/consts/issue-55878.rs

8 lines
261 B
Rust
Raw Normal View History

2019-08-04 23:18:05 -05:00
// normalize-stderr-64bit "18446744073709551615" -> "SIZE"
// normalize-stderr-32bit "4294967295" -> "SIZE"
// error-pattern: are too big for the current architecture
fn main() {
println!("Size: {}", std::mem::size_of::<[u8; std::u64::MAX as usize]>());
}