]> git.proxmox.com Git - rustc.git/blame - src/test/ui/issues/issue-6936.stderr
New upstream version 1.60.0+dfsg1
[rustc.git] / src / test / ui / issues / issue-6936.stderr
CommitLineData
8faf50e0 1error[E0428]: the name `Foo` is defined multiple times
0731742a 2 --> $DIR/issue-6936.rs:5:5
8faf50e0
XL
3 |
4LL | type Foo = ::T;
5 | --------------- previous definition of the type `Foo` here
532ac7d7 6LL | 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
11error[E0428]: the name `Foo` is defined multiple times
0731742a 12 --> $DIR/issue-6936.rs:10:5
8faf50e0
XL
13 |
14LL | type Foo = ::T;
15 | --------------- previous definition of the type `Foo` here
532ac7d7 16LL | 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
21error[E0428]: the name `Foo` is defined multiple times
0731742a 22 --> $DIR/issue-6936.rs:15:5
8faf50e0
XL
23 |
24LL | type Foo = ::T;
25 | --------------- previous definition of the type `Foo` here
532ac7d7 26LL | 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
31error[E0428]: the name `Bar` is defined multiple times
0731742a 32 --> $DIR/issue-6936.rs:25:5
8faf50e0
XL
33 |
34LL | type Bar<T> = T;
35 | ---------------- previous definition of the type `Bar` here
532ac7d7 36LL | 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
41error: aborting due to 4 previous errors
42
43For more information about this error, try `rustc --explain E0428`.