Clarify message about unresolved use

This commit is contained in:
Kornel 2020-08-27 13:27:14 +01:00
parent 397db054cb
commit 7ec1de062a
52 changed files with 126 additions and 105 deletions

View file

@ -5,5 +5,5 @@ mod not_a_real_file; //~ ERROR file not found for module `not_a_real_file`
fn main() {
assert_eq!(mod_file_aux::bar(), 10);
//~^ ERROR failed to resolve: use of undeclared type or module `mod_file_aux`
//~^ ERROR failed to resolve: use of undeclared crate or module `mod_file_aux`
}

View file

@ -6,11 +6,11 @@ LL | mod not_a_real_file;
|
= help: to create the module `not_a_real_file`, create file "$DIR/not_a_real_file.rs"
error[E0433]: failed to resolve: use of undeclared type or module `mod_file_aux`
error[E0433]: failed to resolve: use of undeclared crate or module `mod_file_aux`
--> $DIR/mod_file_not_exist.rs:7:16
|
LL | assert_eq!(mod_file_aux::bar(), 10);
| ^^^^^^^^^^^^ use of undeclared type or module `mod_file_aux`
| ^^^^^^^^^^^^ use of undeclared crate or module `mod_file_aux`
error: aborting due to 2 previous errors

View file

@ -5,5 +5,5 @@ mod not_a_real_file; //~ ERROR file not found for module `not_a_real_file`
fn main() {
assert_eq!(mod_file_aux::bar(), 10);
//~^ ERROR failed to resolve: use of undeclared type or module `mod_file_aux`
//~^ ERROR failed to resolve: use of undeclared crate or module `mod_file_aux`
}

View file

@ -6,11 +6,11 @@ LL | mod not_a_real_file;
|
= help: to create the module `not_a_real_file`, create file "$DIR/not_a_real_file.rs"
error[E0433]: failed to resolve: use of undeclared type or module `mod_file_aux`
error[E0433]: failed to resolve: use of undeclared crate or module `mod_file_aux`
--> $DIR/mod_file_not_exist_windows.rs:7:16
|
LL | assert_eq!(mod_file_aux::bar(), 10);
| ^^^^^^^^^^^^ use of undeclared type or module `mod_file_aux`
| ^^^^^^^^^^^^ use of undeclared crate or module `mod_file_aux`
error: aborting due to 2 previous errors