mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-11 08:05:12 +00:00
27 lines
768 B
Plaintext
27 lines
768 B
Plaintext
|
error[E0412]: cannot find type `bar` in this scope
|
||
|
--> $DIR/issue-4366-2.rs:25:21
|
||
|
|
|
||
|
LL | fn sub() -> bar { 1 }
|
||
|
| ^^^ not found in this scope
|
||
|
help: possible candidate is found in another module, you can import it into scope
|
||
|
|
|
||
|
LL | use a::b::bar;
|
||
|
|
|
||
|
|
||
|
error[E0423]: expected function, found module `foo`
|
||
|
--> $DIR/issue-4366-2.rs:35:5
|
||
|
|
|
||
|
LL | foo(); //~ ERROR expected function, found module `foo`
|
||
|
| ^^^ not a function
|
||
|
help: possible better candidates are found in other modules, you can import them into scope
|
||
|
|
|
||
|
LL | use foo::foo;
|
||
|
|
|
||
|
LL | use m1::foo;
|
||
|
|
|
||
|
|
||
|
error: aborting due to 2 previous errors
|
||
|
|
||
|
Some errors occurred: E0412, E0423.
|
||
|
For more information about an error, try `rustc --explain E0412`.
|