rust/src/test/ui/glob-resolve1.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

103 lines
2.5 KiB
Text

error[E0425]: cannot find function `fpriv` in this scope
--> $DIR/glob-resolve1.rs:22:5
|
LL | fpriv();
| ^^^^^ not found in this scope
|
help: possible candidate is found in another module, you can import it into scope
|
LL | use bar::fpriv;
|
error[E0425]: cannot find function `epriv` in this scope
--> $DIR/glob-resolve1.rs:23:5
|
LL | epriv();
| ^^^^^ not found in this scope
|
help: possible candidate is found in another module, you can import it into scope
|
LL | use bar::epriv;
|
error[E0423]: expected value, found enum `B`
--> $DIR/glob-resolve1.rs:24:5
|
LL | B;
| ^ help: try using the enum's variant: `B::B1`
error[E0425]: cannot find value `C` in this scope
--> $DIR/glob-resolve1.rs:25:5
|
LL | C;
| ^ not found in this scope
|
help: possible candidate is found in another module, you can import it into scope
|
LL | use bar::C;
|
error[E0425]: cannot find function `import` in this scope
--> $DIR/glob-resolve1.rs:26:5
|
LL | import();
| ^^^^^^ not found in this scope
error[E0412]: cannot find type `A` in this scope
--> $DIR/glob-resolve1.rs:28:11
|
LL | pub enum B { B1 }
| ----------------- similarly named enum `B` defined here
...
LL | foo::<A>();
| ^
|
help: an enum with a similar name exists
|
LL | foo::<B>();
| ^
help: possible candidate is found in another module, you can import it into scope
|
LL | use bar::A;
|
error[E0412]: cannot find type `C` in this scope
--> $DIR/glob-resolve1.rs:29:11
|
LL | pub enum B { B1 }
| ----------------- similarly named enum `B` defined here
...
LL | foo::<C>();
| ^
|
help: an enum with a similar name exists
|
LL | foo::<B>();
| ^
help: possible candidate is found in another module, you can import it into scope
|
LL | use bar::C;
|
error[E0412]: cannot find type `D` in this scope
--> $DIR/glob-resolve1.rs:30:11
|
LL | pub enum B { B1 }
| ----------------- similarly named enum `B` defined here
...
LL | foo::<D>();
| ^
|
help: an enum with a similar name exists
|
LL | foo::<B>();
| ^
help: possible candidate is found in another module, you can import it into scope
|
LL | use bar::D;
|
error: aborting due to 8 previous errors
Some errors have detailed explanations: E0412, E0423, E0425.
For more information about an error, try `rustc --explain E0412`.