]> git.lizzy.rs Git - rust.git/blob - src/test/ui/or-patterns/exhaustiveness-unreachable-pattern.stderr
Auto merge of #82624 - ojeda:rwlock-example-deadlock, r=JohnTitor
[rust.git] / src / test / ui / or-patterns / exhaustiveness-unreachable-pattern.stderr
1 error: unreachable pattern
2   --> $DIR/exhaustiveness-unreachable-pattern.rs:7: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:12:9
15    |
16 LL |         (2,) => {}
17    |         ^^^^
18
19 error: unreachable pattern
20   --> $DIR/exhaustiveness-unreachable-pattern.rs:18:9
21    |
22 LL |         (1 | 2,) => {}
23    |         ^^^^^^^^
24
25 error: unreachable pattern
26   --> $DIR/exhaustiveness-unreachable-pattern.rs:23:9
27    |
28 LL |         (1, 3) => {}
29    |         ^^^^^^
30
31 error: unreachable pattern
32   --> $DIR/exhaustiveness-unreachable-pattern.rs:24:9
33    |
34 LL |         (1, 4) => {}
35    |         ^^^^^^
36
37 error: unreachable pattern
38   --> $DIR/exhaustiveness-unreachable-pattern.rs:25:9
39    |
40 LL |         (2, 4) => {}
41    |         ^^^^^^
42
43 error: unreachable pattern
44   --> $DIR/exhaustiveness-unreachable-pattern.rs:26:9
45    |
46 LL |         (2 | 1, 4) => {}
47    |         ^^^^^^^^^^
48
49 error: unreachable pattern
50   --> $DIR/exhaustiveness-unreachable-pattern.rs:28:9
51    |
52 LL |         (1, 4 | 5) => {}
53    |         ^^^^^^^^^^
54
55 error: unreachable pattern
56   --> $DIR/exhaustiveness-unreachable-pattern.rs:36:9
57    |
58 LL |         (Some(1),) => {}
59    |         ^^^^^^^^^^
60
61 error: unreachable pattern
62   --> $DIR/exhaustiveness-unreachable-pattern.rs:37:9
63    |
64 LL |         (None,) => {}
65    |         ^^^^^^^
66
67 error: unreachable pattern
68   --> $DIR/exhaustiveness-unreachable-pattern.rs:42:9
69    |
70 LL |         ((1..=4,),) => {}
71    |         ^^^^^^^^^^^
72
73 error: unreachable pattern
74   --> $DIR/exhaustiveness-unreachable-pattern.rs:47:14
75    |
76 LL |         (1 | 1,) => {}
77    |              ^
78
79 error: unreachable pattern
80   --> $DIR/exhaustiveness-unreachable-pattern.rs:51:19
81    |
82 LL |         (0 | 1) | 1 => {}
83    |                   ^
84
85 error: unreachable pattern
86   --> $DIR/exhaustiveness-unreachable-pattern.rs:57:14
87    |
88 LL |         0 | (0 | 0) => {}
89    |              ^
90
91 error: unreachable pattern
92   --> $DIR/exhaustiveness-unreachable-pattern.rs:57:18
93    |
94 LL |         0 | (0 | 0) => {}
95    |                  ^
96
97 error: unreachable pattern
98   --> $DIR/exhaustiveness-unreachable-pattern.rs:65:13
99    |
100 LL | /             Some(
101 LL | |                 0 | 0) => {}
102    | |______________________^
103
104 error: unreachable pattern
105   --> $DIR/exhaustiveness-unreachable-pattern.rs:71:15
106    |
107 LL |             | 0
108    |               ^
109
110 error: unreachable pattern
111   --> $DIR/exhaustiveness-unreachable-pattern.rs:73:15
112    |
113 LL |             | 0] => {}
114    |               ^
115
116 error: unreachable pattern
117   --> $DIR/exhaustiveness-unreachable-pattern.rs:81:10
118    |
119 LL |         [1
120    |          ^
121
122 error: unreachable pattern
123   --> $DIR/exhaustiveness-unreachable-pattern.rs:93:10
124    |
125 LL |         [true
126    |          ^^^^
127
128 error: unreachable pattern
129   --> $DIR/exhaustiveness-unreachable-pattern.rs:100:36
130    |
131 LL |         (true | false, None | Some(true
132    |                                    ^^^^
133
134 error: unreachable pattern
135   --> $DIR/exhaustiveness-unreachable-pattern.rs:105:14
136    |
137 LL |             (true
138    |              ^^^^
139 ...
140 LL |         (true | false, None | Some(t_or_f!())) => {}
141    |                                    --------- in this macro invocation
142    |
143    = note: this error originates in the macro `t_or_f` (in Nightly builds, run with -Z macro-backtrace for more info)
144
145 error: unreachable pattern
146   --> $DIR/exhaustiveness-unreachable-pattern.rs:116:14
147    |
148 LL |         Some(0
149    |              ^
150
151 error: unreachable pattern
152   --> $DIR/exhaustiveness-unreachable-pattern.rs:135:19
153    |
154 LL |                 | false) => {}
155    |                   ^^^^^
156
157 error: unreachable pattern
158   --> $DIR/exhaustiveness-unreachable-pattern.rs:143:15
159    |
160 LL |             | true) => {}
161    |               ^^^^
162
163 error: unreachable pattern
164   --> $DIR/exhaustiveness-unreachable-pattern.rs:149:15
165    |
166 LL |             | true,
167    |               ^^^^
168
169 error: aborting due to 26 previous errors
170