Files
rust/tests/ui/resolve/duplicate-name-in-module-6936.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

44 lines
1.5 KiB
Plaintext
Raw Normal View History

2018-07-15 14:11:54 -07:00
error[E0428]: the name `Foo` is defined multiple times
2025-08-20 14:02:39 -04:00
--> $DIR/duplicate-name-in-module-6936.rs:6:5
2018-07-15 14:11:54 -07:00
|
LL | type Foo = crate::T;
| -------------------- previous definition of the type `Foo` here
2019-03-09 15:03:44 +03:00
LL | mod Foo {}
2018-07-15 14:11:54 -07:00
| ^^^^^^^ `Foo` redefined here
|
= note: `Foo` must be defined only once in the type namespace of this module
error[E0428]: the name `Foo` is defined multiple times
2025-08-20 14:02:39 -04:00
--> $DIR/duplicate-name-in-module-6936.rs:11:5
2018-07-15 14:11:54 -07:00
|
LL | type Foo = crate::T;
| -------------------- previous definition of the type `Foo` here
2019-03-09 15:03:44 +03:00
LL | struct Foo;
2018-07-15 14:11:54 -07:00
| ^^^^^^^^^^^ `Foo` redefined here
|
= note: `Foo` must be defined only once in the type namespace of this module
error[E0428]: the name `Foo` is defined multiple times
2025-08-20 14:02:39 -04:00
--> $DIR/duplicate-name-in-module-6936.rs:16:5
2018-07-15 14:11:54 -07:00
|
LL | type Foo = crate::T;
| -------------------- previous definition of the type `Foo` here
2019-03-09 15:03:44 +03:00
LL | enum Foo {}
2018-07-15 14:11:54 -07:00
| ^^^^^^^^ `Foo` redefined here
|
= note: `Foo` must be defined only once in the type namespace of this module
error[E0428]: the name `Bar` is defined multiple times
2025-08-20 14:02:39 -04:00
--> $DIR/duplicate-name-in-module-6936.rs:26:5
2018-07-15 14:11:54 -07:00
|
LL | type Bar<T> = T;
| ---------------- previous definition of the type `Bar` here
2019-03-09 15:03:44 +03:00
LL | mod Bar {}
2018-07-15 14:11:54 -07:00
| ^^^^^^^ `Bar` redefined here
|
= note: `Bar` must be defined only once in the type namespace of this module
error: aborting due to 4 previous errors
For more information about this error, try `rustc --explain E0428`.