1 // Matching against NaN should result in a warning
4 #![deny(illegal_floating_point_literal_pattern)]
6 const NAN: f64 = f64::NAN;
11 NAN => {}, //~ ERROR floating-point types cannot be used
12 //~| WARN this was previously accepted by the compiler but is being phased out
17 [NAN, _] => {}, //~ ERROR floating-point types cannot be used
18 //~| WARN this was previously accepted by the compiler but is being phased out