]> git.lizzy.rs Git - rust.git/blob - src/test/ui/huge-enum.rs
Auto merge of #66911 - eddyb:nicer-rustc_regions, r=matthewjasper
[rust.git] / src / test / ui / huge-enum.rs
1 // normalize-stderr-test "std::option::Option<\[u32; \d+\]>" -> "TYPE"
2 // normalize-stderr-test "\[u32; \d+\]" -> "TYPE"
3
4 // FIXME https://github.com/rust-lang/rust/issues/59774
5 // normalize-stderr-test "thread.*panicked.*Metadata module not compiled.*\n" -> ""
6 // normalize-stderr-test "note:.*RUST_BACKTRACE=1.*\n" -> ""
7
8 #[cfg(target_pointer_width = "32")]
9 type BIG = Option<[u32; (1<<29)-1]>;
10
11 #[cfg(target_pointer_width = "64")]
12 type BIG = Option<[u32; (1<<45)-1]>;
13
14 fn main() {
15     let big: BIG = None;
16     //~^ ERROR is too big for the current architecture
17 }