]> git.proxmox.com Git - rustc.git/blob - src/test/ui/pattern/pattern-error-continue.stderr
New upstream version 1.63.0+dfsg1
[rustc.git] / src / test / ui / pattern / pattern-error-continue.stderr
1 error[E0433]: failed to resolve: use of undeclared type `E`
2 --> $DIR/pattern-error-continue.rs:33:9
3 |
4 LL | E::V => {}
5 | ^ use of undeclared type `E`
6
7 error[E0532]: expected tuple struct or tuple variant, found unit variant `A::D`
8 --> $DIR/pattern-error-continue.rs:18:9
9 |
10 LL | B(isize, isize),
11 | --------------- similarly named tuple variant `B` defined here
12 LL | C(isize, isize, isize),
13 LL | D
14 | - `A::D` defined here
15 ...
16 LL | A::D(_) => (),
17 | ^^^^^^^
18 |
19 help: use this syntax instead
20 |
21 LL | A::D => (),
22 | ~~~~
23 help: a tuple variant with a similar name exists
24 |
25 LL | A::B(_) => (),
26 | ~
27
28 error[E0023]: this pattern has 3 fields, but the corresponding tuple variant has 2 fields
29 --> $DIR/pattern-error-continue.rs:17:14
30 |
31 LL | B(isize, isize),
32 | ----- ----- tuple variant has 2 fields
33 ...
34 LL | A::B(_, _, _) => (),
35 | ^ ^ ^ expected 2 fields, found 3
36
37 error[E0308]: mismatched types
38 --> $DIR/pattern-error-continue.rs:22:9
39 |
40 LL | match 'c' {
41 | --- this expression has type `char`
42 LL | S { .. } => (),
43 | ^^^^^^^^ expected `char`, found struct `S`
44
45 error[E0308]: mismatched types
46 --> $DIR/pattern-error-continue.rs:28:7
47 |
48 LL | f(true);
49 | - ^^^^ expected `char`, found `bool`
50 | |
51 | arguments to this function are incorrect
52 |
53 note: function defined here
54 --> $DIR/pattern-error-continue.rs:13:4
55 |
56 LL | fn f(_c: char) {}
57 | ^ --------
58
59 error: aborting due to 5 previous errors
60
61 Some errors have detailed explanations: E0023, E0308, E0433, E0532.
62 For more information about an error, try `rustc --explain E0023`.