Skip to content

Commit

Permalink
FIX #21475: mixing literals and paths in interval
Browse files Browse the repository at this point in the history
  • Loading branch information
defuz committed Feb 28, 2015
1 parent 52fa187 commit f84c257
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/test/run-pass/issue-21475.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 => {},
_ => {},
}
}
Expand Down

0 comments on commit f84c257

Please sign in to comment.