]> git.lizzy.rs Git - rust.git/blob - src/test/ui/pattern/pattern-error-continue.stderr
Reword label as per review comment
[rust.git] / src / test / ui / pattern / pattern-error-continue.stderr
1 error[E0433]: failed to resolve: use of undeclared type or module `E`
2   --> $DIR/pattern-error-continue.rs:35:9
3    |
4 LL |         E::V => {} //~ ERROR failed to resolve: use of undeclared type or module `E`
5    |         ^ use of undeclared type or module `E`
6
7 error[E0532]: expected tuple struct/variant, found unit variant `A::D`
8   --> $DIR/pattern-error-continue.rs:18:9
9    |
10 LL |         A::D(_) => (),       //~ ERROR expected tuple struct/variant, found unit variant `A::D`
11    |         ^^^-
12    |            |
13    |            did you mean `B`?
14
15 error[E0023]: this pattern has 3 fields, but the corresponding tuple variant has 2 fields
16   --> $DIR/pattern-error-continue.rs:17:9
17    |
18 LL |         A::B(_, _, _) => (), //~ ERROR this pattern has 3 fields, but
19    |         ^^^^^^^^^^^^^ expected 2 fields, found 3
20
21 error[E0308]: mismatched types
22   --> $DIR/pattern-error-continue.rs:22:9
23    |
24 LL |     match 'c' {
25    |           --- this match expression has type `char`
26 LL |         S { .. } => (),
27    |         ^^^^^^^^ expected char, found struct `S`
28    |
29    = note: expected type `char`
30               found type `S`
31
32 error[E0308]: mismatched types
33   --> $DIR/pattern-error-continue.rs:30:7
34    |
35 LL |     f(true);
36    |       ^^^^ expected char, found bool
37
38 error: aborting due to 5 previous errors
39
40 Some errors occurred: E0023, E0308, E0433, E0532.
41 For more information about an error, try `rustc --explain E0023`.