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

@ -2,5 +2,5 @@ mod mod_file_disambig_aux; //~ ERROR file for module `mod_file_disambig_aux` fou
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 mod_file_disambig_aux;
|
= help: delete or rename one of them to remove the ambiguity
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_disambig.rs:4: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