-
Notifications
You must be signed in to change notification settings - Fork 963
Closed
Labels
C-bugCategory: this is a bug; use also I-* labels for specific bug kinds, e.g. I-non-idempotency or I-ICECategory: this is a bug; use also I-* labels for specific bug kinds, e.g. I-non-idempotency or I-ICES-blockedStatus: blocked on rustc, an RFC, impl work, etc.; please also add a block reason labelStatus: blocked on rustc, an RFC, impl work, etc.; please also add a block reason label
Description
This example compiles fine with latest nightly, but cargo fmt fails. The failure also occurs on clippy's CI (https://travis-ci.com/rust-lang/rust-clippy/jobs/274511513).
Probably we need rustup and update submodule on rust-lang/rust?
#![feature(half_open_range_patterns)]
#![feature(exclusive_range_pattern)]
fn main() {
match 54 {
5.. => println!("yay!"),
_ => (),
}
}error log:
error: `X..` range patterns are not supported
--> main.rs:6:9
|
6 | 5.. => println!("yay!"),
| ^^^ help: try using the maximum value for the type: `5..MAX`
Metadata
Metadata
Assignees
Labels
C-bugCategory: this is a bug; use also I-* labels for specific bug kinds, e.g. I-non-idempotency or I-ICECategory: this is a bug; use also I-* labels for specific bug kinds, e.g. I-non-idempotency or I-ICES-blockedStatus: blocked on rustc, an RFC, impl work, etc.; please also add a block reason labelStatus: blocked on rustc, an RFC, impl work, etc.; please also add a block reason label