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