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