Rollup merge of #119167 - alef:patch-1, r=compiler-errors

E0761: module directory has .rs suffix

`rustc --explain E0761` example seems wrong.
This commit is contained in:
Matthias Krüger 2023-12-20 21:19:00 +01:00 committed by GitHub
commit 906606d5a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,7 +15,7 @@ fn foo() {}
mod ambiguous_module; // error: file for module `ambiguous_module`
// found at both ambiguous_module.rs and
// ambiguous_module.rs/mod.rs
// ambiguous_module/mod.rs
```
Please remove this ambiguity by deleting/renaming one of the candidate files.