fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #71365 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4fb7144ed15

1.43.0
1.4 KiB44 linesraw
1error[E0433]: failed to resolve: use of undeclared type or module `E`
2  --> $DIR/pattern-error-continue.rs:33:9
3   |
4LL |         E::V => {}
5   |         ^ use of undeclared type or module `E`
6
7error[E0532]: expected tuple struct or tuple variant, found unit variant `A::D`
8  --> $DIR/pattern-error-continue.rs:18:9
9   |
10LL |     B(isize, isize),
11   |     --------------- similarly named tuple variant `B` defined here
12...
13LL |         A::D(_) => (),
14   |         ^^^-
15   |            |
16   |            help: a tuple variant with a similar name exists: `B`
17
18error[E0023]: this pattern has 3 fields, but the corresponding tuple variant has 2 fields
19  --> $DIR/pattern-error-continue.rs:17:9
20   |
21LL |     B(isize, isize),
22   |     --------------- tuple variant defined here
23...
24LL |         A::B(_, _, _) => (),
25   |         ^^^^^^^^^^^^^ expected 2 fields, found 3
26
27error[E0308]: mismatched types
28  --> $DIR/pattern-error-continue.rs:22:9
29   |
30LL |     match 'c' {
31   |           --- this expression has type `char`
32LL |         S { .. } => (),
33   |         ^^^^^^^^ expected `char`, found struct `S`
34
35error[E0308]: mismatched types
36  --> $DIR/pattern-error-continue.rs:28:7
37   |
38LL |     f(true);
39   |       ^^^^ expected `char`, found `bool`
40
41error: aborting due to 5 previous errors
42
43Some errors have detailed explanations: E0023, E0308, E0433, E0532.
44For more information about an error, try `rustc --explain E0023`.