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

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

20 lines
670 B
Rust
Raw Permalink Normal View History

// FIXME(#61117): Remove revisions once x86_64-gnu-debug CI job sets rust.debuginfo-level-tests=2
// NOTE: The .stderr for both revisions shall be identical.
//@ revisions: no-debuginfo full-debuginfo
//@ build-fail
//@ normalize-stderr: "std::option::Option<\[u32; \d+\]>" -> "TYPE"
//@ normalize-stderr: "\[u32; \d+\]" -> "TYPE"
//@[no-debuginfo] compile-flags: -Cdebuginfo=0
//@[full-debuginfo] compile-flags: -Cdebuginfo=2
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]>;
2015-01-16 17:01:02 +02:00
#[cfg(target_pointer_width = "64")]
type BIG = Option<[u32; (1<<59)-1]>;
2019-08-04 12:23:05 -07: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
}