rust/src/test/ui/issues/issue-5927.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

17 lines
498 B
Plaintext

error[E0531]: cannot find tuple struct or tuple variant `x` in this scope
--> $DIR/issue-5927.rs:3:9
|
LL | x(1) => x(1)
| ^ not found in this scope
error[E0425]: cannot find function `x` in this scope
--> $DIR/issue-5927.rs:3:17
|
LL | x(1) => x(1)
| ^ not found in this scope
error: aborting due to 2 previous errors
Some errors have detailed explanations: E0425, E0531.
For more information about an error, try `rustc --explain E0425`.