blob: 37c04a7a7740bdd6a0e34cc9eadd200229f7b259 [file] [log] [blame]
error[E0428]: the name `foo` is defined multiple times
--> $DIR/issue-28472.rs:16:3
|
LL | fn foo();
| --------- previous definition of the value `foo` here
LL |
LL | / pub //~ ERROR the name `foo` is defined multiple times
LL | | fn foo();
| |___________^ `foo` redefined here
|
= note: `foo` must be defined only once in the value namespace of this module
error[E0428]: the name `foo` is defined multiple times
--> $DIR/issue-28472.rs:19:3
|
LL | fn foo();
| --------- previous definition of the value `foo` here
...
LL | / pub //~ ERROR the name `foo` is defined multiple times
LL | | static mut foo: u32;
| |______________________^ `foo` redefined here
|
= note: `foo` 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`.