Add ui test for issue 88074

This commit is contained in:
Gary Guo 2021-08-16 21:00:17 +01:00
parent d8dae4f8e5
commit ca1616c75b

View file

@ -0,0 +1,16 @@
// check-pass
trait Zero {
const ZERO: Self;
}
impl Zero for i32 {
const ZERO: Self = 0;
}
fn main() {
match 1 {
Zero::ZERO ..= 1 => {},
_ => {},
}
}