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