2024-02-16 20:02:50 +00:00
|
|
|
//@ build-fail
|
2024-12-25 22:12:17 +11:00
|
|
|
//@ normalize-stderr: "std::option::Option<\[u32; \d+\]>" -> "TYPE"
|
|
|
|
|
//@ normalize-stderr: "\[u32; \d+\]" -> "TYPE"
|
2019-08-04 13:14:53 -07:00
|
|
|
|
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]>;
|
2014-11-06 21:30:49 -05:00
|
|
|
|
2015-01-16 17:01:02 +02:00
|
|
|
#[cfg(target_pointer_width = "64")]
|
2024-07-09 19:25:28 -07:00
|
|
|
type BIG = Option<[u32; (1<<59)-1]>;
|
2019-08-04 12:23:05 -07:00
|
|
|
|
2014-11-06 21:30:49 -05:00
|
|
|
fn main() {
|
2019-08-04 12:23:05 -07:00
|
|
|
let big: BIG = None;
|
2024-09-20 00:39:10 -07:00
|
|
|
//~^ ERROR are too big for the target architecture
|
2014-11-06 21:30:49 -05:00
|
|
|
}
|