Skip to content

Commit c73d4cd

Browse files
Clean up E0761 explanation
1 parent 1a22a0f commit c73d4cd

File tree

1 file changed

+3
-7
lines changed
  • src/librustc_error_codes/error_codes

1 file changed

+3
-7
lines changed

src/librustc_error_codes/error_codes/E0761.md

+3-7
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,20 @@ Multiple candidate files were found for an out-of-line module.
22

33
Erroneous code example:
44

5-
```rust
5+
```ignore (multiple source files required for compile_fail)
66
// file: ambiguous_module/mod.rs
77
88
fn foo() {}
9-
```
109
11-
```rust
1210
// file: ambiguous_module.rs
1311
1412
fn foo() {}
15-
```
1613
17-
```ignore (multiple source files required for compile_fail)
14+
// file: lib.rs
15+
1816
mod ambiguous_module; // error: file for module `ambiguous_module`
1917
// found at both ambiguous_module.rs and
2018
// ambiguous_module.rs/mod.rs
21-
22-
fn main() {}
2319
```
2420

2521
Please remove this ambiguity by deleting/renaming one of the candidate files.

0 commit comments

Comments
 (0)