]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-13727.rs
Add test for eval order for a+=b
[rust.git] / src / test / ui / issues / issue-13727.rs
1 #![allow(overflowing_literals)]
2 #![deny(unreachable_patterns)]
3
4 fn test(val: u8) {
5   match val {
6     256 => print!("0b1110\n"),
7     512 => print!("0b1111\n"),
8     //~^ ERROR: unreachable pattern
9     _   => print!("fail\n"),
10   }
11 }
12
13 fn main() {
14   test(1);
15 }