]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/const-eval/shift_overflow.rs
Add 'library/portable-simd/' from commit '1ce1c645cf27c4acdefe6ec8a11d1f0491954a99'
[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 }