]> git.proxmox.com Git - rustc.git/blob - src/test/ui/pattern/pattern-error-continue.stderr
New upstream version 1.31.0~beta.19+dfsg1
[rustc.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:45: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:28: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:27: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:32:9
23 |
24 LL | S { .. } => (),
25 | ^^^^^^^^ expected char, found struct `S`
26 |
27 = note: expected type `char`
28 found type `S`
29
30 error[E0308]: mismatched types
31 --> $DIR/pattern-error-continue.rs:40:7
32 |
33 LL | f(true);
34 | ^^^^ expected char, found bool
35
36 error: aborting due to 5 previous errors
37
38 Some errors occurred: E0023, E0308, E0433, E0532.
39 For more information about an error, try `rustc --explain E0023`.