]> git.proxmox.com Git - rustc.git/blame - src/test/ui/pattern/usefulness/integer-ranges/reachability.stderr
New upstream version 1.57.0+dfsg1
[rustc.git] / src / test / ui / pattern / usefulness / integer-ranges / reachability.stderr
CommitLineData
fc512014
XL
1error: unreachable pattern
2 --> $DIR/reachability.rs:17:17
3 |
4LL | m!(0u8, 42, 42);
5 | ^^
6 |
7note: the lint level is defined here
8 --> $DIR/reachability.rs:3:9
9 |
10LL | #![deny(unreachable_patterns)]
11 | ^^^^^^^^^^^^^^^^^^^^
12
13error: unreachable pattern
14 --> $DIR/reachability.rs:21:22
15 |
16LL | m!(0u8, 20..=30, 20);
17 | ^^
18
19error: unreachable pattern
20 --> $DIR/reachability.rs:22:22
21 |
22LL | m!(0u8, 20..=30, 21);
23 | ^^
24
25error: unreachable pattern
26 --> $DIR/reachability.rs:23:22
27 |
28LL | m!(0u8, 20..=30, 25);
29 | ^^
30
31error: unreachable pattern
32 --> $DIR/reachability.rs:24:22
33 |
34LL | m!(0u8, 20..=30, 29);
35 | ^^
36
37error: unreachable pattern
38 --> $DIR/reachability.rs:25:22
39 |
40LL | m!(0u8, 20..=30, 30);
41 | ^^
42
43error: unreachable pattern
44 --> $DIR/reachability.rs:28:21
45 |
46LL | m!(0u8, 20..30, 20);
47 | ^^
48
49error: unreachable pattern
50 --> $DIR/reachability.rs:29:21
51 |
52LL | m!(0u8, 20..30, 21);
53 | ^^
54
55error: unreachable pattern
56 --> $DIR/reachability.rs:30:21
57 |
58LL | m!(0u8, 20..30, 25);
59 | ^^
60
61error: unreachable pattern
62 --> $DIR/reachability.rs:31:21
63 |
64LL | m!(0u8, 20..30, 29);
65 | ^^
66
67error: unreachable pattern
68 --> $DIR/reachability.rs:35:22
69 |
70LL | m!(0u8, 20..=30, 20..=30);
71 | ^^^^^^^
72
73error: unreachable pattern
74 --> $DIR/reachability.rs:36:22
75 |
76LL | m!(0u8, 20.. 30, 20.. 30);
77 | ^^^^^^^
78
79error: unreachable pattern
80 --> $DIR/reachability.rs:37:22
81 |
82LL | m!(0u8, 20..=30, 20.. 30);
83 | ^^^^^^^
84
85error: unreachable pattern
86 --> $DIR/reachability.rs:39:22
87 |
88LL | m!(0u8, 20..=30, 21..=30);
89 | ^^^^^^^
90
91error: unreachable pattern
92 --> $DIR/reachability.rs:40:22
93 |
94LL | m!(0u8, 20..=30, 20..=29);
95 | ^^^^^^^
96
97error: unreachable pattern
98 --> $DIR/reachability.rs:42:24
99 |
100LL | m!('a', 'A'..='z', 'a'..='z');
101 | ^^^^^^^^^
102
103error: unreachable pattern
104 --> $DIR/reachability.rs:49:9
105 |
106LL | 5..=8 => {},
107 | ^^^^^
108
109error: unreachable pattern
110 --> $DIR/reachability.rs:55:9
111 |
112LL | 5..15 => {},
113 | ^^^^^
114
115error: unreachable pattern
116 --> $DIR/reachability.rs:62:9
117 |
118LL | 5..25 => {},
119 | ^^^^^
120
121error: unreachable pattern
122 --> $DIR/reachability.rs:70:9
123 |
124LL | 5..25 => {},
125 | ^^^^^
126
127error: unreachable pattern
128 --> $DIR/reachability.rs:76:9
129 |
130LL | 5..15 => {},
131 | ^^^^^
132
133error: unreachable pattern
134 --> $DIR/reachability.rs:83:9
135 |
c295e0f8
XL
136LL | _ => {},
137 | - matches any value
fc512014 138LL | '\u{D7FF}'..='\u{E000}' => {},
c295e0f8 139 | ^^^^^^^^^^^^^^^^^^^^^^^ unreachable pattern
fc512014
XL
140
141error: unreachable pattern
142 --> $DIR/reachability.rs:104:9
143 |
144LL | &FOO => {}
145 | ^^^^
146
147error: unreachable pattern
148 --> $DIR/reachability.rs:105:9
149 |
150LL | BAR => {}
151 | ^^^
152
153error: aborting due to 24 previous errors
154