rust/tests/ui/error-codes/E0370.rs

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

11 lines
143 B
Rust
Raw Normal View History

2016-08-06 14:44:49 -05:00
#![allow(dead_code)]
#[deny(overflowing_literals)]
#[repr(i64)]
enum Foo {
X = 0x7fffffffffffffff,
Y, //~ ERROR E0370
}
fn main() {}