]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/const-eval/shift_overflow.rs
Merge commit 'e36a20c24f35a4cee82bbdc600289104c9237c22' into ra-sync-and-pms-component
[rust.git] / src / test / ui / consts / const-eval / shift_overflow.rs
1 enum Foo {
2     // test that we detect overflows for non-u32 discriminants
3     X = 1 << ((u32::MAX as u64) + 1), //~ ERROR E0080
4     Y = 42,
5 }
6
7
8 fn main() {
9 }