rust/src/test/ui/issue-21546.stderr

70 lines
2.0 KiB
Plaintext
Raw Normal View History

error[E0428]: the name `Foo` is defined multiple times
--> $DIR/issue-21546.rs:17:1
|
2018-02-22 18:42:32 -06:00
LL | mod Foo { }
| ------- previous definition of the module `Foo` here
...
2018-02-22 18:42:32 -06:00
LL | struct Foo;
| ^^^^^^^^^^^ `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
--> $DIR/issue-21546.rs:24:1
|
2018-02-22 18:42:32 -06:00
LL | mod Bar { }
| ------- previous definition of the module `Bar` here
...
2018-02-22 18:42:32 -06:00
LL | struct Bar(i32);
| ^^^^^^^^^^^^^^^^ `Bar` redefined here
|
= note: `Bar` must be defined only once in the type namespace of this module
error[E0428]: the name `Baz` is defined multiple times
--> $DIR/issue-21546.rs:32:1
|
2018-02-22 18:42:32 -06:00
LL | struct Baz(i32);
| ---------------- previous definition of the type `Baz` here
...
2018-02-22 18:42:32 -06:00
LL | mod Baz { }
| ^^^^^^^ `Baz` redefined here
|
= note: `Baz` must be defined only once in the type namespace of this module
error[E0428]: the name `Qux` is defined multiple times
--> $DIR/issue-21546.rs:40:1
|
2018-02-22 18:42:32 -06:00
LL | struct Qux { x: bool }
| ---------- previous definition of the type `Qux` here
...
2018-02-22 18:42:32 -06:00
LL | mod Qux { }
| ^^^^^^^ `Qux` redefined here
|
= note: `Qux` must be defined only once in the type namespace of this module
error[E0428]: the name `Quux` is defined multiple times
--> $DIR/issue-21546.rs:48:1
|
2018-02-22 18:42:32 -06:00
LL | struct Quux;
| ------------ previous definition of the type `Quux` here
...
2018-02-22 18:42:32 -06:00
LL | mod Quux { }
| ^^^^^^^^ `Quux` redefined here
|
= note: `Quux` must be defined only once in the type namespace of this module
error[E0428]: the name `Corge` is defined multiple times
--> $DIR/issue-21546.rs:56:1
|
2018-02-22 18:42:32 -06:00
LL | enum Corge { A, B }
| ---------- previous definition of the type `Corge` here
...
2018-02-22 18:42:32 -06:00
LL | mod Corge { }
| ^^^^^^^^^ `Corge` redefined here
|
= note: `Corge` must be defined only once in the type namespace of this module
error: aborting due to 6 previous errors
2018-02-19 14:40:25 -06:00
If you want more information on this error, try using "rustc --explain E0428"