rust/tests/ui/limits/huge-enum.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
383 B
Rust
Raw Normal View History

//@ build-fail
//@ normalize-stderr-test: "std::option::Option<\[u32; \d+\]>" -> "TYPE"
//@ normalize-stderr-test: "\[u32; \d+\]" -> "TYPE"
2019-08-04 20:14:53 +00:00
2015-01-16 15:01:02 +00:00
#[cfg(target_pointer_width = "32")]
2019-08-04 19:23:05 +00:00
type BIG = Option<[u32; (1<<29)-1]>;
2015-01-16 15:01:02 +00:00
#[cfg(target_pointer_width = "64")]
type BIG = Option<[u32; (1<<59)-1]>;
2019-08-04 19:23:05 +00:00
fn main() {
2019-08-04 19:23:05 +00:00
let big: BIG = None;
2024-09-20 07:39:10 +00:00
//~^ ERROR are too big for the target architecture
}