|
1 |
| -warning: floating-point types cannot be used in patterns |
2 |
| - --> $DIR/deduplicate-diagnostics-2.rs:7:9 |
| 1 | +error: floating-point types cannot be used in patterns |
| 2 | + --> $DIR/deduplicate-diagnostics-2.rs:6:9 |
3 | 3 | |
|
4 | 4 | LL | 1.0 => {}
|
5 | 5 | | ^^^
|
6 | 6 | |
|
7 |
| - = note: `#[warn(illegal_floating_point_literal_pattern)]` on by default |
| 7 | + = note: `#[deny(illegal_floating_point_literal_pattern)]` on by default |
8 | 8 | = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
9 | 9 | = note: for more information, see issue #41620 <https://github.com/rust-lang/rust/issues/41620>
|
10 | 10 |
|
11 |
| -warning: floating-point types cannot be used in patterns |
12 |
| - --> $DIR/deduplicate-diagnostics-2.rs:11:9 |
| 11 | +error: floating-point types cannot be used in patterns |
| 12 | + --> $DIR/deduplicate-diagnostics-2.rs:10:9 |
13 | 13 | |
|
14 | 14 | LL | 2.0 => {}
|
15 | 15 | | ^^^
|
16 | 16 | |
|
17 | 17 | = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
18 | 18 | = note: for more information, see issue #41620 <https://github.com/rust-lang/rust/issues/41620>
|
19 | 19 |
|
20 |
| -warning: floating-point types cannot be used in patterns |
21 |
| - --> $DIR/deduplicate-diagnostics-2.rs:7:9 |
| 20 | +error: floating-point types cannot be used in patterns |
| 21 | + --> $DIR/deduplicate-diagnostics-2.rs:6:9 |
22 | 22 | |
|
23 | 23 | LL | 1.0 => {}
|
24 | 24 | | ^^^
|
25 | 25 | |
|
26 | 26 | = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
27 | 27 | = note: for more information, see issue #41620 <https://github.com/rust-lang/rust/issues/41620>
|
28 | 28 |
|
29 |
| -warning: floating-point types cannot be used in patterns |
30 |
| - --> $DIR/deduplicate-diagnostics-2.rs:11:9 |
| 29 | +error: floating-point types cannot be used in patterns |
| 30 | + --> $DIR/deduplicate-diagnostics-2.rs:10:9 |
31 | 31 | |
|
32 | 32 | LL | 2.0 => {}
|
33 | 33 | | ^^^
|
34 | 34 | |
|
35 | 35 | = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
36 | 36 | = note: for more information, see issue #41620 <https://github.com/rust-lang/rust/issues/41620>
|
37 | 37 |
|
38 |
| -warning: 4 warnings emitted |
| 38 | +error: aborting due to 4 previous errors |
39 | 39 |
|
0 commit comments