rust/tests/ui/consts/promoted_size_overflow.rs

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

8 lines
194 B
Rust
Raw Permalink Normal View History

//@ only-64bit
pub struct Data([u8; usize::MAX >> 2]);
const _: &'static [Data] = &[];
//~^ERROR: evaluation of constant value failed
//~| NOTE too big for the target architecture
fn main() {}