2019-12-13 21:28:32 -06:00
|
|
|
// build-fail
|
2019-08-04 15:14:53 -05:00
|
|
|
// normalize-stderr-test "std::option::Option<\[u32; \d+\]>" -> "TYPE"
|
|
|
|
// normalize-stderr-test "\[u32; \d+\]" -> "TYPE"
|
|
|
|
|
2019-04-14 03:24:49 -05: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 09:01:02 -06:00
|
|
|
#[cfg(target_pointer_width = "32")]
|
2019-08-04 14:23:05 -05:00
|
|
|
type BIG = Option<[u32; (1<<29)-1]>;
|
2014-11-06 20:30:49 -06:00
|
|
|
|
2015-01-16 09:01:02 -06:00
|
|
|
#[cfg(target_pointer_width = "64")]
|
2019-08-04 14:23:05 -05:00
|
|
|
type BIG = Option<[u32; (1<<45)-1]>;
|
|
|
|
|
2014-11-06 20:30:49 -06:00
|
|
|
fn main() {
|
2019-08-04 14:23:05 -05:00
|
|
|
let big: BIG = None;
|
2020-11-18 03:42:49 -06:00
|
|
|
//~^ ERROR are too big for the current architecture
|
2014-11-06 20:30:49 -06:00
|
|
|
}
|