Clarify message about unresolved use
This commit is contained in:
parent
397db054cb
commit
7ec1de062a
52 changed files with 126 additions and 105 deletions
|
|
@ -1,7 +1,7 @@
|
|||
fn main() {
|
||||
let foo = thing::len(Vec::new());
|
||||
//~^ ERROR failed to resolve: use of undeclared type or module `thing`
|
||||
//~^ ERROR failed to resolve: use of undeclared crate or module `thing`
|
||||
|
||||
let foo = foo::bar::baz();
|
||||
//~^ ERROR failed to resolve: use of undeclared type or module `foo`
|
||||
//~^ ERROR failed to resolve: use of undeclared crate or module `foo`
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,14 +1,14 @@
|
|||
error[E0433]: failed to resolve: use of undeclared type or module `thing`
|
||||
error[E0433]: failed to resolve: use of undeclared crate or module `thing`
|
||||
--> $DIR/bad-module.rs:2:15
|
||||
|
|
||||
LL | let foo = thing::len(Vec::new());
|
||||
| ^^^^^ use of undeclared type or module `thing`
|
||||
| ^^^^^ use of undeclared crate or module `thing`
|
||||
|
||||
error[E0433]: failed to resolve: use of undeclared type or module `foo`
|
||||
error[E0433]: failed to resolve: use of undeclared crate or module `foo`
|
||||
--> $DIR/bad-module.rs:5:15
|
||||
|
|
||||
LL | let foo = foo::bar::baz();
|
||||
| ^^^ use of undeclared type or module `foo`
|
||||
| ^^^ use of undeclared crate or module `foo`
|
||||
|
||||
error: aborting due to 2 previous errors
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue