]>
Commit | Line | Data |
---|---|---|
1b1a35ee | 1 | error[E0433]: failed to resolve: use of undeclared type `E` |
60c5eb7d | 2 | --> $DIR/pattern-error-continue.rs:33:9 |
b7449926 | 3 | | |
532ac7d7 | 4 | LL | E::V => {} |
1b1a35ee | 5 | | ^ use of undeclared type `E` |
b7449926 | 6 | |
e74abb32 | 7 | error[E0532]: expected tuple struct or tuple variant, found unit variant `A::D` |
0731742a | 8 | --> $DIR/pattern-error-continue.rs:18:9 |
b7449926 | 9 | | |
e74abb32 XL |
10 | LL | B(isize, isize), |
11 | | --------------- similarly named tuple variant `B` defined here | |
12 | ... | |
532ac7d7 | 13 | LL | A::D(_) => (), |
b7449926 XL |
14 | | ^^^- |
15 | | | | |
0731742a | 16 | | help: a tuple variant with a similar name exists: `B` |
b7449926 XL |
17 | |
18 | error[E0023]: this pattern has 3 fields, but the corresponding tuple variant has 2 fields | |
0731742a | 19 | --> $DIR/pattern-error-continue.rs:17:9 |
b7449926 | 20 | | |
e1599b0c XL |
21 | LL | B(isize, isize), |
22 | | --------------- tuple variant defined here | |
23 | ... | |
532ac7d7 | 24 | LL | A::B(_, _, _) => (), |
b7449926 XL |
25 | | ^^^^^^^^^^^^^ expected 2 fields, found 3 |
26 | ||
27 | error[E0308]: mismatched types | |
0731742a | 28 | --> $DIR/pattern-error-continue.rs:22:9 |
b7449926 | 29 | | |
0731742a | 30 | LL | match 'c' { |
dfeec247 | 31 | | --- this expression has type `char` |
b7449926 | 32 | LL | S { .. } => (), |
60c5eb7d | 33 | | ^^^^^^^^ expected `char`, found struct `S` |
b7449926 XL |
34 | |
35 | error[E0308]: mismatched types | |
60c5eb7d | 36 | --> $DIR/pattern-error-continue.rs:28:7 |
b7449926 XL |
37 | | |
38 | LL | f(true); | |
60c5eb7d | 39 | | ^^^^ expected `char`, found `bool` |
b7449926 XL |
40 | |
41 | error: aborting due to 5 previous errors | |
42 | ||
48663c56 | 43 | Some errors have detailed explanations: E0023, E0308, E0433, E0532. |
b7449926 | 44 | For more information about an error, try `rustc --explain E0023`. |