]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/const-eval/shift_overflow.rs
Merge commit '1411a98352ba6bee8ba3b0131c9243e5db1e6a2e' into sync_cg_clif-2021-12-31
[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 }