]> git.proxmox.com Git - rustc.git/blob - tests/ui/or-patterns/exhaustiveness-unreachable-pattern.stderr
New upstream version 1.76.0+dfsg1
[rustc.git] / tests / ui / or-patterns / exhaustiveness-unreachable-pattern.stderr
1 error: unreachable pattern
2 --> $DIR/exhaustiveness-unreachable-pattern.rs:8:9
3 |
4 LL | (1,) => {}
5 | ^^^^
6 |
7 note: the lint level is defined here
8 --> $DIR/exhaustiveness-unreachable-pattern.rs:1:9
9 |
10 LL | #![deny(unreachable_patterns)]
11 | ^^^^^^^^^^^^^^^^^^^^
12
13 error: unreachable pattern
14 --> $DIR/exhaustiveness-unreachable-pattern.rs:13:9
15 |
16 LL | (2,) => {}
17 | ^^^^
18
19 error: unreachable pattern
20 --> $DIR/exhaustiveness-unreachable-pattern.rs:19:9
21 |
22 LL | (1 | 2,) => {}
23 | ^^^^^^^^
24
25 error: unreachable pattern
26 --> $DIR/exhaustiveness-unreachable-pattern.rs:24:9
27 |
28 LL | (1, 3) => {}
29 | ^^^^^^
30
31 error: unreachable pattern
32 --> $DIR/exhaustiveness-unreachable-pattern.rs:25:9
33 |
34 LL | (1, 4) => {}
35 | ^^^^^^
36
37 error: unreachable pattern
38 --> $DIR/exhaustiveness-unreachable-pattern.rs:26:9
39 |
40 LL | (2, 4) => {}
41 | ^^^^^^
42
43 error: unreachable pattern
44 --> $DIR/exhaustiveness-unreachable-pattern.rs:27:9
45 |
46 LL | (2 | 1, 4) => {}
47 | ^^^^^^^^^^
48
49 error: unreachable pattern
50 --> $DIR/exhaustiveness-unreachable-pattern.rs:29:9
51 |
52 LL | (1, 4 | 5) => {}
53 | ^^^^^^^^^^
54
55 error: unreachable pattern
56 --> $DIR/exhaustiveness-unreachable-pattern.rs:37:9
57 |
58 LL | (Some(1),) => {}
59 | ^^^^^^^^^^
60
61 error: unreachable pattern
62 --> $DIR/exhaustiveness-unreachable-pattern.rs:38:9
63 |
64 LL | (None,) => {}
65 | ^^^^^^^
66
67 error: unreachable pattern
68 --> $DIR/exhaustiveness-unreachable-pattern.rs:43:9
69 |
70 LL | ((1..=4,),) => {}
71 | ^^^^^^^^^^^
72
73 error: unreachable pattern
74 --> $DIR/exhaustiveness-unreachable-pattern.rs:48:14
75 |
76 LL | (1 | 1,) => {}
77 | ^
78
79 error: unreachable pattern
80 --> $DIR/exhaustiveness-unreachable-pattern.rs:52:19
81 |
82 LL | (0 | 1) | 1 => {}
83 | ^
84
85 error: unreachable pattern
86 --> $DIR/exhaustiveness-unreachable-pattern.rs:58:14
87 |
88 LL | 0 | (0 | 0) => {}
89 | ^
90
91 error: unreachable pattern
92 --> $DIR/exhaustiveness-unreachable-pattern.rs:58:18
93 |
94 LL | 0 | (0 | 0) => {}
95 | ^
96
97 error: unreachable pattern
98 --> $DIR/exhaustiveness-unreachable-pattern.rs:66:13
99 |
100 LL | / Some(
101 LL | | 0 | 0) => {}
102 | |______________________^
103
104 error: unreachable pattern
105 --> $DIR/exhaustiveness-unreachable-pattern.rs:72:15
106 |
107 LL | | 0
108 | ^
109
110 error: unreachable pattern
111 --> $DIR/exhaustiveness-unreachable-pattern.rs:74:15
112 |
113 LL | | 0] => {}
114 | ^
115
116 error: unreachable pattern
117 --> $DIR/exhaustiveness-unreachable-pattern.rs:78:20
118 |
119 LL | (true, 0 | 0) => {}
120 | ^
121
122 error: unreachable pattern
123 --> $DIR/exhaustiveness-unreachable-pattern.rs:79:17
124 |
125 LL | (_, 0 | 0) => {}
126 | ^
127
128 error: unreachable pattern
129 --> $DIR/exhaustiveness-unreachable-pattern.rs:87:10
130 |
131 LL | [1
132 | ^
133
134 error: unreachable pattern
135 --> $DIR/exhaustiveness-unreachable-pattern.rs:99:10
136 |
137 LL | [true
138 | ^^^^
139
140 error: unreachable pattern
141 --> $DIR/exhaustiveness-unreachable-pattern.rs:106:36
142 |
143 LL | (true | false, None | Some(true
144 | ^^^^
145
146 error: unreachable pattern
147 --> $DIR/exhaustiveness-unreachable-pattern.rs:111:14
148 |
149 LL | (true
150 | ^^^^
151 ...
152 LL | (true | false, None | Some(t_or_f!())) => {}
153 | --------- in this macro invocation
154 |
155 = note: this error originates in the macro `t_or_f` (in Nightly builds, run with -Z macro-backtrace for more info)
156
157 error: unreachable pattern
158 --> $DIR/exhaustiveness-unreachable-pattern.rs:122:14
159 |
160 LL | Some(0
161 | ^
162
163 error: unreachable pattern
164 --> $DIR/exhaustiveness-unreachable-pattern.rs:141:19
165 |
166 LL | | false) => {}
167 | ^^^^^
168
169 error: unreachable pattern
170 --> $DIR/exhaustiveness-unreachable-pattern.rs:149:15
171 |
172 LL | | true) => {}
173 | ^^^^
174
175 error: unreachable pattern
176 --> $DIR/exhaustiveness-unreachable-pattern.rs:155:15
177 |
178 LL | | true,
179 | ^^^^
180
181 error: unreachable pattern
182 --> $DIR/exhaustiveness-unreachable-pattern.rs:160:15
183 |
184 LL | | (y, x) => {}
185 | ^^^^^^
186
187 error: aborting due to 29 previous errors
188