fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
2.4 KiB75 linesraw
1error: unreachable pattern
2  --> $DIR/match-range-fail-dominate.rs:12:7
3   |
4LL |       5 ..= 6 => { }
5   |       ^^^^^^^
6   |
7note: lint level defined here
8  --> $DIR/match-range-fail-dominate.rs:7:9
9   |
10LL | #![deny(unreachable_patterns)]
11   |         ^^^^^^^^^^^^^^^^^^^^
12
13error: unreachable pattern
14  --> $DIR/match-range-fail-dominate.rs:18:7
15   |
16LL |       4 ..= 6 => { }
17   |       ^^^^^^^
18
19error: unreachable pattern
20  --> $DIR/match-range-fail-dominate.rs:24:7
21   |
22LL |       4 ..= 6 => { }
23   |       ^^^^^^^
24
25error: unreachable pattern
26  --> $DIR/match-range-fail-dominate.rs:30:7
27   |
28LL |       'a' ..= 'z' => {}
29   |       ^^^^^^^^^^^
30
31warning: floating-point types cannot be used in patterns
32  --> $DIR/match-range-fail-dominate.rs:35:7
33   |
34LL |       0.01f64 ..= 6.5f64 => {}
35   |       ^^^^^^^
36   |
37   = note: `#[warn(illegal_floating_point_literal_pattern)]` on by default
38   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
39   = note: for more information, see issue #41620 <https://github.com/rust-lang/rust/issues/41620>
40
41warning: floating-point types cannot be used in patterns
42  --> $DIR/match-range-fail-dominate.rs:35:19
43   |
44LL |       0.01f64 ..= 6.5f64 => {}
45   |                   ^^^^^^
46   |
47   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
48   = note: for more information, see issue #41620 <https://github.com/rust-lang/rust/issues/41620>
49
50warning: floating-point types cannot be used in patterns
51  --> $DIR/match-range-fail-dominate.rs:36:7
52   |
53LL |       0.02f64 => {}
54   |       ^^^^^^^
55   |
56   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
57   = note: for more information, see issue #41620 <https://github.com/rust-lang/rust/issues/41620>
58
59error: unreachable pattern
60  --> $DIR/match-range-fail-dominate.rs:36:7
61   |
62LL |       0.02f64 => {}
63   |       ^^^^^^^
64
65warning: floating-point types cannot be used in patterns
66  --> $DIR/match-range-fail-dominate.rs:35:7
67   |
68LL |       0.01f64 ..= 6.5f64 => {}
69   |       ^^^^^^^
70   |
71   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
72   = note: for more information, see issue #41620 <https://github.com/rust-lang/rust/issues/41620>
73
74error: aborting due to 5 previous errors
75