2020-01-18 23:51:06 +00:00
|
|
|
error[E0428]: the name `f` is defined multiple times
|
2025-10-03 11:27:57 +02:00
|
|
|
--> $DIR/test-compile-fail1.rs:8:1
|
|
|
|
|
|
|
|
|
|
|
LL | pub fn f() {}
|
|
|
|
|
| ---------- previous definition of the value `f` here
|
|
|
|
|
LL |
|
|
|
|
|
LL | pub fn f() {}
|
|
|
|
|
| ^^^^^^^^^^ `f` redefined here
|
|
|
|
|
|
|
|
|
|
|
= note: `f` must be defined only once in the value namespace of this module
|
2020-01-18 23:51:06 +00:00
|
|
|
|
2023-11-21 16:44:51 +00:00
|
|
|
error: aborting due to 1 previous error
|
2020-01-18 23:51:06 +00:00
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0428`.
|