rust/src/test/ui/huge-enum.rs

15 lines
444 B
Rust
Raw Normal View History

2019-04-14 10:24:49 +02:00
// FIXME https://github.com/rust-lang/rust/issues/59774
// normalize-stderr-test "thread.*panicked.*Metadata module not compiled.*\n" -> ""
// normalize-stderr-test "note:.*RUST_BACKTRACE=1.*\n" -> ""
2015-01-16 17:01:02 +02:00
#[cfg(target_pointer_width = "32")]
2019-08-04 12:23:05 -07:00
type BIG = Option<[u32; (1<<29)-1]>;
2015-01-16 17:01:02 +02:00
#[cfg(target_pointer_width = "64")]
2019-08-04 12:23:05 -07:00
type BIG = Option<[u32; (1<<45)-1]>;
fn main() {
2019-08-04 12:23:05 -07:00
let big: BIG = None;
//~^ ERROR is too big for the current architecture
}