1 // Evaluation of constants in refutable patterns goes through
2 // different compiler control-flow paths.
4 #![allow(unused_imports, warnings)]
7 use std::{i8, i16, i32, i64, isize};
8 use std::{u8, u16, u32, u64, usize};
10 const NEG_128: i8 = -128;
11 const NEG_NEG_128: i8 = -NEG_128; //~ ERROR constant
15 NEG_NEG_128 => println!("A"),
16 //~^ ERROR could not evaluate constant pattern
17 //~| ERROR could not evaluate constant pattern