rust/tests/ui/issues/issue-21546.stderr

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

70 lines
2.0 KiB
Plaintext
Raw Normal View History

error[E0428]: the name `Foo` is defined multiple times
2018-12-25 15:56:47 +00:00
--> $DIR/issue-21546.rs:7:1
|
2018-02-23 00:42:32 +00:00
LL | mod Foo { }
| ------- previous definition of the module `Foo` here
...
2018-02-23 00:42:32 +00: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
2018-12-25 15:56:47 +00:00
--> $DIR/issue-21546.rs:14:1
|
2018-02-23 00:42:32 +00:00
LL | mod Bar { }
| ------- previous definition of the module `Bar` here
...
2018-02-23 00:42:32 +00: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
2018-12-25 15:56:47 +00:00
--> $DIR/issue-21546.rs:22:1
|
2018-02-23 00:42:32 +00:00
LL | struct Baz(i32);
| ---------------- previous definition of the type `Baz` here
...
2018-02-23 00:42:32 +00: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
2018-12-25 15:56:47 +00:00
--> $DIR/issue-21546.rs:30:1
|
2018-02-23 00:42:32 +00:00
LL | struct Qux { x: bool }
| ---------- previous definition of the type `Qux` here
...
2018-02-23 00:42:32 +00: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
2018-12-25 15:56:47 +00:00
--> $DIR/issue-21546.rs:38:1
|
2018-02-23 00:42:32 +00:00
LL | struct Quux;
| ------------ previous definition of the type `Quux` here
...
2018-02-23 00:42:32 +00: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
2018-12-25 15:56:47 +00:00
--> $DIR/issue-21546.rs:46:1
|
2018-02-23 00:42:32 +00:00
LL | enum Corge { A, B }
| ---------- previous definition of the type `Corge` here
...
2018-02-23 00:42:32 +00: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-03-03 14:59:40 +00:00
For more information about this error, try `rustc --explain E0428`.