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