]> git.lizzy.rs Git - rust.git/blob - src/test/ui/pattern/usefulness/match-range-fail-dominate.stderr
Add test for eval order for a+=b
[rust.git] / src / test / ui / pattern / usefulness / match-range-fail-dominate.stderr
1 error: unreachable pattern
2   --> $DIR/match-range-fail-dominate.rs:6:7
3    |
4 LL |       5 ..= 6 => { }
5    |       ^^^^^^^
6    |
7 note: the lint level is defined here
8   --> $DIR/match-range-fail-dominate.rs:1:9
9    |
10 LL | #![deny(unreachable_patterns, overlapping_patterns)]
11    |         ^^^^^^^^^^^^^^^^^^^^
12
13 error: unreachable pattern
14   --> $DIR/match-range-fail-dominate.rs:13:7
15    |
16 LL |       4 ..= 6 => { }
17    |       ^^^^^^^
18
19 error: unreachable pattern
20   --> $DIR/match-range-fail-dominate.rs:20:7
21    |
22 LL |       4 ..= 6 => { }
23    |       ^^^^^^^
24
25 error: unreachable pattern
26   --> $DIR/match-range-fail-dominate.rs:27:7
27    |
28 LL |       'a' ..= 'z' => {}
29    |       ^^^^^^^^^^^
30
31 warning: floating-point types cannot be used in patterns
32   --> $DIR/match-range-fail-dominate.rs:33:7
33    |
34 LL |       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
41 warning: floating-point types cannot be used in patterns
42   --> $DIR/match-range-fail-dominate.rs:33:19
43    |
44 LL |       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
50 warning: floating-point types cannot be used in patterns
51   --> $DIR/match-range-fail-dominate.rs:42:7
52    |
53 LL |       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
59 error: unreachable pattern
60   --> $DIR/match-range-fail-dominate.rs:42:7
61    |
62 LL |       0.02f64 => {}
63    |       ^^^^^^^
64
65 warning: floating-point types cannot be used in patterns
66   --> $DIR/match-range-fail-dominate.rs:33:7
67    |
68 LL |       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
74 warning: floating-point types cannot be used in patterns
75   --> $DIR/match-range-fail-dominate.rs:33:19
76    |
77 LL |       0.01f64 ..= 6.5f64 => {}
78    |                   ^^^^^^
79    |
80    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
81    = note: for more information, see issue #41620 <https://github.com/rust-lang/rust/issues/41620>
82
83 warning: floating-point types cannot be used in patterns
84   --> $DIR/match-range-fail-dominate.rs:42:7
85    |
86 LL |       0.02f64 => {}
87    |       ^^^^^^^
88    |
89    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
90    = note: for more information, see issue #41620 <https://github.com/rust-lang/rust/issues/41620>
91
92 error: aborting due to 5 previous errors; 6 warnings emitted
93