2018-07-15 21:11:54 +00:00
|
|
|
error[E0428]: the name `foo` is defined multiple times
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/issue-28472.rs:6:3
|
2018-07-15 21:11:54 +00:00
|
|
|
|
|
|
|
|
LL | fn foo();
|
|
|
|
| --------- previous definition of the value `foo` here
|
2022-06-08 18:07:59 +00:00
|
|
|
LL |
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | / pub
|
2018-07-15 21:11:54 +00:00
|
|
|
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
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/issue-28472.rs:9:3
|
2018-07-15 21:11:54 +00:00
|
|
|
|
|
|
|
|
LL | fn foo();
|
|
|
|
| --------- previous definition of the value `foo` here
|
|
|
|
...
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | / pub
|
2018-07-15 21:11:54 +00:00
|
|
|
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`.
|