fork/rust

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

borsAuto merge of #67350 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum73528e339aa

1.40.0
1.5 KiB47 linesraw
1error[E0433]: failed to resolve: use of undeclared type or module `E`
2  --> $DIR/pattern-error-continue.rs:35: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 match expression has type `char`
32LL |         S { .. } => (),
33   |         ^^^^^^^^ expected char, found struct `S`
34   |
35   = note: expected type `char`
36              found type `S`
37
38error[E0308]: mismatched types
39  --> $DIR/pattern-error-continue.rs:30:7
40   |
41LL |     f(true);
42   |       ^^^^ expected char, found bool
43
44error: aborting due to 5 previous errors
45
46Some errors have detailed explanations: E0023, E0308, E0433, E0532.
47For more information about an error, try `rustc --explain E0023`.