FIX #21475: mixing literals and paths in interval
This commit is contained in:
parent
52fa187431
commit
f84c25721e
1 changed files with 2 additions and 3 deletions
|
@ -13,9 +13,8 @@ use m::{START, END};
|
|||
fn main() {
|
||||
match 42u32 {
|
||||
m::START...m::END => {},
|
||||
// FIXME: Should also work (now: mismatched types in range [E0031])
|
||||
// 0u32...m::END => {},
|
||||
// m::START...59u32 => {},
|
||||
0u32...m::END => {},
|
||||
m::START...59u32 => {},
|
||||
_ => {},
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue