]>
Commit | Line | Data |
---|---|---|
ff7c6d11 | 1 | error[E0428]: the name `Foo` is defined multiple times |
0731742a | 2 | --> $DIR/issue-21546.rs:7:1 |
ff7c6d11 | 3 | | |
0531ce1d | 4 | LL | mod Foo { } |
ff7c6d11 XL |
5 | | ------- previous definition of the module `Foo` here |
6 | ... | |
0531ce1d | 7 | LL | struct Foo; |
ff7c6d11 XL |
8 | | ^^^^^^^^^^^ `Foo` redefined here |
9 | | | |
10 | = note: `Foo` must be defined only once in the type namespace of this module | |
11 | ||
12 | error[E0428]: the name `Bar` is defined multiple times | |
0731742a | 13 | --> $DIR/issue-21546.rs:14:1 |
ff7c6d11 | 14 | | |
0531ce1d | 15 | LL | mod Bar { } |
ff7c6d11 XL |
16 | | ------- previous definition of the module `Bar` here |
17 | ... | |
0531ce1d | 18 | LL | struct Bar(i32); |
ff7c6d11 XL |
19 | | ^^^^^^^^^^^^^^^^ `Bar` redefined here |
20 | | | |
21 | = note: `Bar` must be defined only once in the type namespace of this module | |
22 | ||
23 | error[E0428]: the name `Baz` is defined multiple times | |
0731742a | 24 | --> $DIR/issue-21546.rs:22:1 |
ff7c6d11 | 25 | | |
0531ce1d | 26 | LL | struct Baz(i32); |
ff7c6d11 XL |
27 | | ---------------- previous definition of the type `Baz` here |
28 | ... | |
0531ce1d | 29 | LL | mod Baz { } |
ff7c6d11 XL |
30 | | ^^^^^^^ `Baz` redefined here |
31 | | | |
32 | = note: `Baz` must be defined only once in the type namespace of this module | |
33 | ||
34 | error[E0428]: the name `Qux` is defined multiple times | |
0731742a | 35 | --> $DIR/issue-21546.rs:30:1 |
ff7c6d11 | 36 | | |
0531ce1d | 37 | LL | struct Qux { x: bool } |
ff7c6d11 XL |
38 | | ---------- previous definition of the type `Qux` here |
39 | ... | |
0531ce1d | 40 | LL | mod Qux { } |
ff7c6d11 XL |
41 | | ^^^^^^^ `Qux` redefined here |
42 | | | |
43 | = note: `Qux` must be defined only once in the type namespace of this module | |
44 | ||
45 | error[E0428]: the name `Quux` is defined multiple times | |
0731742a | 46 | --> $DIR/issue-21546.rs:38:1 |
ff7c6d11 | 47 | | |
0531ce1d | 48 | LL | struct Quux; |
ff7c6d11 XL |
49 | | ------------ previous definition of the type `Quux` here |
50 | ... | |
0531ce1d | 51 | LL | mod Quux { } |
ff7c6d11 XL |
52 | | ^^^^^^^^ `Quux` redefined here |
53 | | | |
54 | = note: `Quux` must be defined only once in the type namespace of this module | |
55 | ||
56 | error[E0428]: the name `Corge` is defined multiple times | |
0731742a | 57 | --> $DIR/issue-21546.rs:46:1 |
ff7c6d11 | 58 | | |
0531ce1d | 59 | LL | enum Corge { A, B } |
ff7c6d11 XL |
60 | | ---------- previous definition of the type `Corge` here |
61 | ... | |
0531ce1d | 62 | LL | mod Corge { } |
ff7c6d11 XL |
63 | | ^^^^^^^^^ `Corge` redefined here |
64 | | | |
65 | = note: `Corge` must be defined only once in the type namespace of this module | |
66 | ||
67 | error: aborting due to 6 previous errors | |
68 | ||
0531ce1d | 69 | For more information about this error, try `rustc --explain E0428`. |