mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
ea86990ee6
Co-authored-by: Edvin Bryntesson <epost@edvinbryntesson.se>
9 lines
164 B
Rust
9 lines
164 B
Rust
// Regression test for #154878
|
|
//@ revisions: cpass1 cpass2
|
|
|
|
pub fn main() {
|
|
let x = 42.0;
|
|
#[expect(invalid_nan_comparisons)]
|
|
let _b = x == f32::NAN;
|
|
}
|