1 // Matching against NaN should result in a warning
4 #![deny(illegal_floating_point_literal_pattern)]
11 NAN => {}, //~ ERROR floating-point types cannot be used
12 //~^ WARN this was previously accepted by the compiler but is being phased out
13 //~| ERROR floating-point types cannot be used in patterns
14 //~| WARN this was previously accepted by the compiler but is being phased out
19 [NAN, _] => {}, //~ ERROR floating-point types cannot be used
20 //~| ERROR floating-point types cannot be used
21 //~| WARN this was previously accepted by the compiler but is being phased out
22 //~| WARN this was previously accepted by the compiler but is being phased out