Skip to content

Commit f84c257

Browse files
committed
FIX #21475: mixing literals and paths in interval
1 parent 52fa187 commit f84c257

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/test/run-pass/issue-21475.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,8 @@ use m::{START, END};
1313
fn main() {
1414
match 42u32 {
1515
m::START...m::END => {},
16-
// FIXME: Should also work (now: mismatched types in range [E0031])
17-
// 0u32...m::END => {},
18-
// m::START...59u32 => {},
16+
0u32...m::END => {},
17+
m::START...59u32 => {},
1918
_ => {},
2019
}
2120
}

0 commit comments

Comments
 (0)