]> git.proxmox.com Git - rustc.git/blob - tests/ui/issues/issue-6936.stderr
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / ui / issues / issue-6936.stderr
1 error[E0428]: the name `Foo` is defined multiple times
2 --> $DIR/issue-6936.rs:5:5
3 |
4 LL | type Foo = ::T;
5 | --------------- previous definition of the type `Foo` here
6 LL | mod Foo {}
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
12 --> $DIR/issue-6936.rs:10:5
13 |
14 LL | type Foo = ::T;
15 | --------------- previous definition of the type `Foo` here
16 LL | struct Foo;
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
22 --> $DIR/issue-6936.rs:15:5
23 |
24 LL | type Foo = ::T;
25 | --------------- previous definition of the type `Foo` here
26 LL | enum Foo {}
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
32 --> $DIR/issue-6936.rs:25:5
33 |
34 LL | type Bar<T> = T;
35 | ---------------- previous definition of the type `Bar` here
36 LL | mod Bar {}
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`.