]> git.lizzy.rs Git - rust.git/blob - tests/ui/privacy/effective_visibilities_invariants.stderr
Rollup merge of #106726 - cmorin6:fix-comment-typos, r=Nilstrieb
[rust.git] / tests / ui / privacy / effective_visibilities_invariants.stderr
1 error[E0428]: the name `m` is defined multiple times
2   --> $DIR/effective_visibilities_invariants.rs:7:1
3    |
4 LL | pub mod m {}
5    | --------- previous definition of the module `m` here
6 LL |
7 LL | pub mod m {
8    | ^^^^^^^^^ `m` redefined here
9    |
10    = note: `m` must be defined only once in the type namespace of this module
11
12 error: module has missing stability attribute
13   --> $DIR/effective_visibilities_invariants.rs:3:1
14    |
15 LL | / #![feature(staged_api)]
16 LL | |
17 LL | | pub mod m {}
18 LL | |
19 ...  |
20 LL | |
21 LL | | fn main() {}
22    | |____________^
23
24 error: module has missing stability attribute
25   --> $DIR/effective_visibilities_invariants.rs:5:1
26    |
27 LL | pub mod m {}
28    | ^^^^^^^^^^^^
29
30 error: aborting due to 3 previous errors
31
32 For more information about this error, try `rustc --explain E0428`.