rust/src/test/ui/issues/issue-pr29383.stderr
Esteban Küber b26ddb8af3 Point at local similarly named element and tweak references to variants
Point at the span for the definition of ADTs internal to the current
crate.

Look at the leading char of the ident to determine whether we're
expecting a likely fn or any of a fn, a tuple struct or a tuple variant.

Turn fn `add_typo_suggestion` into a `Resolver` method.
2019-10-27 11:50:43 -07:00

16 lines
535 B
Plaintext

error[E0532]: expected tuple struct or tuple variant, found unit variant `E::A`
--> $DIR/issue-pr29383.rs:9:14
|
LL | Some(E::A(..)) => {}
| ^^^^ not a tuple struct or tuple variant
error[E0532]: expected tuple struct or tuple variant, found unit variant `E::B`
--> $DIR/issue-pr29383.rs:11:14
|
LL | Some(E::B(..)) => {}
| ^^^^ not a tuple struct or tuple variant
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0532`.