Add ui test for issue 88074
This commit is contained in:
parent
d8dae4f8e5
commit
ca1616c75b
1 changed files with 16 additions and 0 deletions
16
src/test/ui/pattern/issue-88074-pat-range-type-inference.rs
Normal file
16
src/test/ui/pattern/issue-88074-pat-range-type-inference.rs
Normal 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 => {},
|
||||
_ => {},
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue