]>
Commit | Line | Data |
---|---|---|
8faf50e0 | 1 | error[E0428]: the name `Foo` is defined multiple times |
0731742a | 2 | --> $DIR/issue-6936.rs:5:5 |
8faf50e0 XL |
3 | | |
4 | LL | type Foo = ::T; | |
5 | | --------------- previous definition of the type `Foo` here | |
532ac7d7 | 6 | LL | mod Foo {} |
8faf50e0 XL |
7 | | ^^^^^^^ `Foo` redefined here |
8 | | | |
9 | = note: `Foo` must be defined only once in the type namespace of this module | |
10 | ||
11 | error[E0428]: the name `Foo` is defined multiple times | |
0731742a | 12 | --> $DIR/issue-6936.rs:10:5 |
8faf50e0 XL |
13 | | |
14 | LL | type Foo = ::T; | |
15 | | --------------- previous definition of the type `Foo` here | |
532ac7d7 | 16 | LL | struct Foo; |
8faf50e0 XL |
17 | | ^^^^^^^^^^^ `Foo` redefined here |
18 | | | |
19 | = note: `Foo` must be defined only once in the type namespace of this module | |
20 | ||
21 | error[E0428]: the name `Foo` is defined multiple times | |
0731742a | 22 | --> $DIR/issue-6936.rs:15:5 |
8faf50e0 XL |
23 | | |
24 | LL | type Foo = ::T; | |
25 | | --------------- previous definition of the type `Foo` here | |
532ac7d7 | 26 | LL | enum Foo {} |
8faf50e0 XL |
27 | | ^^^^^^^^ `Foo` redefined here |
28 | | | |
29 | = note: `Foo` must be defined only once in the type namespace of this module | |
30 | ||
31 | error[E0428]: the name `Bar` is defined multiple times | |
0731742a | 32 | --> $DIR/issue-6936.rs:25:5 |
8faf50e0 XL |
33 | | |
34 | LL | type Bar<T> = T; | |
35 | | ---------------- previous definition of the type `Bar` here | |
532ac7d7 | 36 | LL | mod Bar {} |
8faf50e0 XL |
37 | | ^^^^^^^ `Bar` redefined here |
38 | | | |
39 | = note: `Bar` must be defined only once in the type namespace of this module | |
40 | ||
41 | error: aborting due to 4 previous errors | |
42 | ||
43 | For more information about this error, try `rustc --explain E0428`. |