]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/const-eval/shift_overflow.rs
Auto merge of #81132 - bugadani:map-prealloc, r=matthewjasper
[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 }