]> git.lizzy.rs Git - rust.git/blob - src/test/ui/match/non-exhaustive-defined-here.stderr
Rollup merge of #64010 - c410-f3r:stabilize-attrs-fn, r=Centril
[rust.git] / src / test / ui / match / non-exhaustive-defined-here.stderr
1 error[E0004]: non-exhaustive patterns: `B` and `C` not covered
2   --> $DIR/non-exhaustive-defined-here.rs:32:11
3    |
4 LL | / enum E {
5 LL | |
6 LL | |
7 LL | |
8 ...  |
9 LL | |     B,
10    | |     - not covered
11 ...  |
12 LL | |     C
13    | |     - not covered
14 ...  |
15 LL | |
16 LL | | }
17    | |_- `E` defined here
18 ...
19 LL |       match e1 {
20    |             ^^ patterns `B` and `C` not covered
21    |
22    = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
23
24 error[E0005]: refutable pattern in local binding: `B` and `C` not covered
25   --> $DIR/non-exhaustive-defined-here.rs:36:9
26    |
27 LL | / enum E {
28 LL | |
29 LL | |
30 LL | |
31 ...  |
32 LL | |     B,
33    | |     - not covered
34 ...  |
35 LL | |     C
36    | |     - not covered
37 ...  |
38 LL | |
39 LL | | }
40    | |_- `E` defined here
41 ...
42 LL |       let E::A = e;
43    |           ^^^^ patterns `B` and `C` not covered
44
45 error[E0004]: non-exhaustive patterns: `&B` and `&C` not covered
46   --> $DIR/non-exhaustive-defined-here.rs:40:11
47    |
48 LL | / enum E {
49 LL | |
50 LL | |
51 LL | |
52 ...  |
53 LL | |     B,
54    | |     - not covered
55 ...  |
56 LL | |     C
57    | |     - not covered
58 ...  |
59 LL | |
60 LL | | }
61    | |_- `E` defined here
62 ...
63 LL |       match e {
64    |             ^ patterns `&B` and `&C` not covered
65    |
66    = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
67
68 error[E0005]: refutable pattern in local binding: `&B` and `&C` not covered
69   --> $DIR/non-exhaustive-defined-here.rs:44:9
70    |
71 LL | / enum E {
72 LL | |
73 LL | |
74 LL | |
75 ...  |
76 LL | |     B,
77    | |     - not covered
78 ...  |
79 LL | |     C
80    | |     - not covered
81 ...  |
82 LL | |
83 LL | | }
84    | |_- `E` defined here
85 ...
86 LL |       let E::A = e;
87    |           ^^^^ patterns `&B` and `&C` not covered
88
89 error[E0004]: non-exhaustive patterns: `&&mut &B` and `&&mut &C` not covered
90   --> $DIR/non-exhaustive-defined-here.rs:48:11
91    |
92 LL | / enum E {
93 LL | |
94 LL | |
95 LL | |
96 ...  |
97 LL | |     B,
98    | |     - not covered
99 ...  |
100 LL | |     C
101    | |     - not covered
102 ...  |
103 LL | |
104 LL | | }
105    | |_- `E` defined here
106 ...
107 LL |       match e {
108    |             ^ patterns `&&mut &B` and `&&mut &C` not covered
109    |
110    = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
111
112 error[E0005]: refutable pattern in local binding: `&&mut &B` and `&&mut &C` not covered
113   --> $DIR/non-exhaustive-defined-here.rs:52:9
114    |
115 LL | / enum E {
116 LL | |
117 LL | |
118 LL | |
119 ...  |
120 LL | |     B,
121    | |     - not covered
122 ...  |
123 LL | |     C
124    | |     - not covered
125 ...  |
126 LL | |
127 LL | | }
128    | |_- `E` defined here
129 ...
130 LL |       let E::A = e;
131    |           ^^^^ patterns `&&mut &B` and `&&mut &C` not covered
132
133 error[E0004]: non-exhaustive patterns: `None` not covered
134   --> $DIR/non-exhaustive-defined-here.rs:65:11
135    |
136 LL | / enum Opt {
137 LL | |
138 LL | |
139 LL | |     Some(u8),
140 LL | |     None,
141    | |     ---- not covered
142 LL | |
143 LL | | }
144    | |_- `Opt` defined here
145 ...
146 LL |       match e {
147    |             ^ pattern `None` not covered
148    |
149    = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
150
151 error[E0005]: refutable pattern in local binding: `None` not covered
152   --> $DIR/non-exhaustive-defined-here.rs:69:9
153    |
154 LL | / enum Opt {
155 LL | |
156 LL | |
157 LL | |     Some(u8),
158 LL | |     None,
159    | |     ---- not covered
160 LL | |
161 LL | | }
162    | |_- `Opt` defined here
163 ...
164 LL |       let Opt::Some(ref _x) = e;
165    |           ^^^^^^^^^^^^^^^^^ pattern `None` not covered
166
167 error: aborting due to 8 previous errors
168
169 Some errors have detailed explanations: E0004, E0005.
170 For more information about an error, try `rustc --explain E0004`.