mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 09:14:20 +00:00
13 lines
222 B
Rust
13 lines
222 B
Rust
// run-pass
|
|
// pretty-expanded FIXME #23616
|
|
#![allow(illegal_floating_point_literal_pattern)] // FIXME #41620
|
|
|
|
pub fn main() {
|
|
const FOO: f64 = 10.0;
|
|
|
|
match 0.0 {
|
|
0.0 ..= FOO => (),
|
|
_ => ()
|
|
}
|
|
}
|