11error: cannot use NaN in patterns
2- --> $DIR/issue-6804-nan-match.rs:10 :9
2+ --> $DIR/issue-6804-nan-match.rs:15 :9
33 |
44LL | NAN => {},
55 | ^^^
@@ -8,7 +8,7 @@ LL | NAN => {},
88 = help: try using the `is_nan` method instead
99
1010error: cannot use NaN in patterns
11- --> $DIR/issue-6804-nan-match.rs:15 :10
11+ --> $DIR/issue-6804-nan-match.rs:20 :10
1212 |
1313LL | [NAN, _] => {},
1414 | ^^^
@@ -17,7 +17,16 @@ LL | [NAN, _] => {},
1717 = help: try using the `is_nan` method instead
1818
1919error: cannot use NaN in patterns
20- --> $DIR/issue-6804-nan-match.rs:21:9
20+ --> $DIR/issue-6804-nan-match.rs:25:9
21+ |
22+ LL | C => {},
23+ | ^
24+ |
25+ = note: NaNs compare inequal to everything, even themselves, so this pattern would never match
26+ = help: try using the `is_nan` method instead
27+
28+ error: cannot use NaN in patterns
29+ --> $DIR/issue-6804-nan-match.rs:31:9
2130 |
2231LL | NAN..=1.0 => {},
2332 | ^^^
@@ -26,13 +35,13 @@ LL | NAN..=1.0 => {},
2635 = help: try using the `is_nan` method instead
2736
2837error[E0030]: lower range bound must be less than or equal to upper
29- --> $DIR/issue-6804-nan-match.rs:21 :9
38+ --> $DIR/issue-6804-nan-match.rs:31 :9
3039 |
3140LL | NAN..=1.0 => {},
3241 | ^^^^^^^^^ lower bound larger than upper bound
3342
3443error: cannot use NaN in patterns
35- --> $DIR/issue-6804-nan-match.rs:23 :16
44+ --> $DIR/issue-6804-nan-match.rs:33 :16
3645 |
3746LL | -1.0..=NAN => {},
3847 | ^^^
@@ -41,13 +50,13 @@ LL | -1.0..=NAN => {},
4150 = help: try using the `is_nan` method instead
4251
4352error[E0030]: lower range bound must be less than or equal to upper
44- --> $DIR/issue-6804-nan-match.rs:23 :9
53+ --> $DIR/issue-6804-nan-match.rs:33 :9
4554 |
4655LL | -1.0..=NAN => {},
4756 | ^^^^^^^^^^ lower bound larger than upper bound
4857
4958error: cannot use NaN in patterns
50- --> $DIR/issue-6804-nan-match.rs:25 :9
59+ --> $DIR/issue-6804-nan-match.rs:35 :9
5160 |
5261LL | NAN.. => {},
5362 | ^^^
@@ -56,13 +65,13 @@ LL | NAN.. => {},
5665 = help: try using the `is_nan` method instead
5766
5867error[E0030]: lower range bound must be less than or equal to upper
59- --> $DIR/issue-6804-nan-match.rs:25 :9
68+ --> $DIR/issue-6804-nan-match.rs:35 :9
6069 |
6170LL | NAN.. => {},
6271 | ^^^^^ lower bound larger than upper bound
6372
6473error: cannot use NaN in patterns
65- --> $DIR/issue-6804-nan-match.rs:27 :11
74+ --> $DIR/issue-6804-nan-match.rs:37 :11
6675 |
6776LL | ..NAN => {},
6877 | ^^^
@@ -71,12 +80,12 @@ LL | ..NAN => {},
7180 = help: try using the `is_nan` method instead
7281
7382error[E0579]: lower range bound must be less than upper
74- --> $DIR/issue-6804-nan-match.rs:27 :9
83+ --> $DIR/issue-6804-nan-match.rs:37 :9
7584 |
7685LL | ..NAN => {},
7786 | ^^^^^
7887
79- error: aborting due to 10 previous errors
88+ error: aborting due to 11 previous errors
8089
8190Some errors have detailed explanations: E0030, E0579.
8291For more information about an error, try `rustc --explain E0030`.
0 commit comments