mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
Regression test for issue 154878
Co-authored-by: Edvin Bryntesson <epost@edvinbryntesson.se>
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
// Regression test for #154878
|
||||
//@ revisions: cpass1 cpass2
|
||||
|
||||
pub fn main() {
|
||||
let x = 42.0;
|
||||
#[expect(invalid_nan_comparisons)]
|
||||
let _b = x == f32::NAN;
|
||||
}
|
||||
Reference in New Issue
Block a user