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