1 error: unreachable pattern
2 --> $DIR/exhaustiveness-unreachable-pattern.rs:8:9
7 note: the lint level is defined here
8 --> $DIR/exhaustiveness-unreachable-pattern.rs:1:9
10 LL | #![deny(unreachable_patterns)]
11 | ^^^^^^^^^^^^^^^^^^^^
13 error: unreachable pattern
14 --> $DIR/exhaustiveness-unreachable-pattern.rs:13:9
19 error: unreachable pattern
20 --> $DIR/exhaustiveness-unreachable-pattern.rs:19:9
25 error: unreachable pattern
26 --> $DIR/exhaustiveness-unreachable-pattern.rs:24:9
31 error: unreachable pattern
32 --> $DIR/exhaustiveness-unreachable-pattern.rs:25:9
37 error: unreachable pattern
38 --> $DIR/exhaustiveness-unreachable-pattern.rs:26:9
43 error: unreachable pattern
44 --> $DIR/exhaustiveness-unreachable-pattern.rs:27:9
49 error: unreachable pattern
50 --> $DIR/exhaustiveness-unreachable-pattern.rs:29:9
55 error: unreachable pattern
56 --> $DIR/exhaustiveness-unreachable-pattern.rs:37:9
61 error: unreachable pattern
62 --> $DIR/exhaustiveness-unreachable-pattern.rs:38:9
67 error: unreachable pattern
68 --> $DIR/exhaustiveness-unreachable-pattern.rs:43:9
70 LL | ((1..=4,),) => {}
73 error: unreachable pattern
74 --> $DIR/exhaustiveness-unreachable-pattern.rs:48:14
79 error: unreachable pattern
80 --> $DIR/exhaustiveness-unreachable-pattern.rs:52:19
82 LL | (0 | 1) | 1 => {}
85 error: unreachable pattern
86 --> $DIR/exhaustiveness-unreachable-pattern.rs:58:14
88 LL | 0 | (0 | 0) => {}
91 error: unreachable pattern
92 --> $DIR/exhaustiveness-unreachable-pattern.rs:58:18
94 LL | 0 | (0 | 0) => {}
97 error: unreachable pattern
98 --> $DIR/exhaustiveness-unreachable-pattern.rs:66:13
102 | |______________________^
104 error: unreachable pattern
105 --> $DIR/exhaustiveness-unreachable-pattern.rs:72:15
110 error: unreachable pattern
111 --> $DIR/exhaustiveness-unreachable-pattern.rs:74:15
116 error: unreachable pattern
117 --> $DIR/exhaustiveness-unreachable-pattern.rs:78:20
119 LL | (true, 0 | 0) => {}
122 error: unreachable pattern
123 --> $DIR/exhaustiveness-unreachable-pattern.rs:79:17
125 LL | (_, 0 | 0) => {}
128 error: unreachable pattern
129 --> $DIR/exhaustiveness-unreachable-pattern.rs:87:10
134 error: unreachable pattern
135 --> $DIR/exhaustiveness-unreachable-pattern.rs:99:10
140 error: unreachable pattern
141 --> $DIR/exhaustiveness-unreachable-pattern.rs:106:36
143 LL | (true | false, None | Some(true
146 error: unreachable pattern
147 --> $DIR/exhaustiveness-unreachable-pattern.rs:111:14
152 LL | (true | false, None | Some(t_or_f!())) => {}
153 | --------- in this macro invocation
155 = note: this error originates in the macro `t_or_f` (in Nightly builds, run with -Z macro-backtrace for more info)
157 error: unreachable pattern
158 --> $DIR/exhaustiveness-unreachable-pattern.rs:122:14
163 error: unreachable pattern
164 --> $DIR/exhaustiveness-unreachable-pattern.rs:141:19
169 error: unreachable pattern
170 --> $DIR/exhaustiveness-unreachable-pattern.rs:149:15
175 error: unreachable pattern
176 --> $DIR/exhaustiveness-unreachable-pattern.rs:155:15
181 error: unreachable pattern
182 --> $DIR/exhaustiveness-unreachable-pattern.rs:160:15
187 error: aborting due to 29 previous errors