]>
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 | |
17df50a5 XL |
12 | LL | C(isize, isize, isize), |
13 | LL | D | |
14 | | - `A::D` defined here | |
e74abb32 | 15 | ... |
532ac7d7 | 16 | LL | A::D(_) => (), |
17df50a5 XL |
17 | | ^^^^^^^ |
18 | | | |
19 | help: use this syntax instead | |
20 | | | |
21 | LL | A::D => (), | |
94222f64 | 22 | | ~~~~ |
17df50a5 XL |
23 | help: a tuple variant with a similar name exists |
24 | | | |
25 | LL | A::B(_) => (), | |
94222f64 | 26 | | ~ |
b7449926 XL |
27 | |
28 | error[E0023]: this pattern has 3 fields, but the corresponding tuple variant has 2 fields | |
94222f64 | 29 | --> $DIR/pattern-error-continue.rs:17:14 |
b7449926 | 30 | | |
e1599b0c | 31 | LL | B(isize, isize), |
94222f64 | 32 | | ----- ----- tuple variant has 2 fields |
e1599b0c | 33 | ... |
532ac7d7 | 34 | LL | A::B(_, _, _) => (), |
94222f64 | 35 | | ^ ^ ^ expected 2 fields, found 3 |
b7449926 XL |
36 | |
37 | error[E0308]: mismatched types | |
0731742a | 38 | --> $DIR/pattern-error-continue.rs:22:9 |
b7449926 | 39 | | |
0731742a | 40 | LL | match 'c' { |
dfeec247 | 41 | | --- this expression has type `char` |
b7449926 | 42 | LL | S { .. } => (), |
60c5eb7d | 43 | | ^^^^^^^^ expected `char`, found struct `S` |
b7449926 XL |
44 | |
45 | error[E0308]: mismatched types | |
60c5eb7d | 46 | --> $DIR/pattern-error-continue.rs:28:7 |
b7449926 XL |
47 | | |
48 | LL | f(true); | |
60c5eb7d | 49 | | ^^^^ expected `char`, found `bool` |
b7449926 XL |
50 | |
51 | error: aborting due to 5 previous errors | |
52 | ||
48663c56 | 53 | Some errors have detailed explanations: E0023, E0308, E0433, E0532. |
b7449926 | 54 | For more information about an error, try `rustc --explain E0023`. |