mirror of
https://github.com/allankoechke/rust.git
synced 2026-12-03 17:48:43 +00:00
Add ui test for issue 88074
This commit is contained in:
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 => {},
|
||||
_ => {},
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user