]> git.lizzy.rs Git - rust.git/blob - src/test/ui/pattern/usefulness/issue-43253.stderr
Show the values and computation that would overflow a const evaluation or propagation
[rust.git] / src / test / ui / pattern / usefulness / issue-43253.stderr
1 warning: multiple patterns covering the same range
2   --> $DIR/issue-43253.rs:16:9
3    |
4 LL |         1..10 => {},
5    |         ----- this range overlaps on `9_i32`
6 LL |         9..=10 => {},
7    |         ^^^^^^ overlapping patterns
8    |
9 note: the lint level is defined here
10   --> $DIR/issue-43253.rs:4:9
11    |
12 LL | #![warn(overlapping_patterns)]
13    |         ^^^^^^^^^^^^^^^^^^^^
14
15 warning: unreachable pattern
16   --> $DIR/issue-43253.rs:29:9
17    |
18 LL |         9 => {},
19    |         ^
20    |
21 note: the lint level is defined here
22   --> $DIR/issue-43253.rs:3:9
23    |
24 LL | #![warn(unreachable_patterns)]
25    |         ^^^^^^^^^^^^^^^^^^^^
26
27 warning: unreachable pattern
28   --> $DIR/issue-43253.rs:35:9
29    |
30 LL |         8..=9 => {},
31    |         ^^^^^
32
33 warning: unreachable pattern
34   --> $DIR/issue-43253.rs:41:9
35    |
36 LL |         6 => {},
37    |         ^
38
39 warning: unreachable pattern
40   --> $DIR/issue-43253.rs:43:9
41    |
42 LL |         9..=9 => {},
43    |         ^^^^^
44
45 warning: unreachable pattern
46   --> $DIR/issue-43253.rs:44:9
47    |
48 LL |         6 => {},
49    |         ^
50
51 warning: 6 warnings emitted
52