blob: 30b24019a36ff56744f3c1743127228888537e95 [file]
error[E0428]: the name `Foo` is defined multiple times
--> $DIR/eii-declaration-conflicts-with-constructor.rs:10:1
|
LL | struct Foo(i32);
| ---------------- previous definition of the value `Foo` here
...
LL | pub fn Foo(x: u64) {}
| ^^^^^^^^^^^^^^^^^^ `Foo` redefined here
|
= note: `Foo` must be defined only once in the value namespace of this module
error[E0428]: the name `Bar` is defined multiple times
--> $DIR/eii-declaration-conflicts-with-constructor.rs:14:1
|
LL | struct Bar;
| ----------- previous definition of the value `Bar` here
...
LL | pub fn Bar(x: u64) {}
| ^^^^^^^^^^^^^^^^^^ `Bar` redefined here
|
= note: `Bar` must be defined only once in the value namespace of this module
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0428`.