]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/const-eval/shift_overflow.rs
Merge commit '2b2190cb5667cdd276a24ef8b9f3692209c54a89' into clippyup
[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 }