rust/tests/run-make/unknown-mod-stdin/unknown-mod.stderr
Esteban Küber 2cca435717 Mention the syntax for use on mod foo; if foo doesn't exist
Newcomers might get confused that `mod` is the only way of defining
scopes, and that it can be used as if it were `use`.

Fix #69492.
2023-10-21 15:56:01 +00:00

13 lines
413 B
Plaintext

error[E0583]: file not found for module `unknown`
--> <anon>:1:1
|
1 | mod unknown;
| ^^^^^^^^^^^^
|
= help: to create the module `unknown`, create file "unknown.rs" or "unknown/mod.rs"
= note: if there is a `mod unknown` elsewhere in the crate already, import it with `use crate::...` instead
error: aborting due to previous error
For more information about this error, try `rustc --explain E0583`.