Open
Description
I tried this code:
#[unsafe(no_mangle)]
#[track_caller]
pub fn foo() {}
fn main() {
let _a = foo as fn();
}
I expected to see this happen: I’m not sure, but not what actually happened
Instead, this happened:
error: symbol `foo` is already defined
--> src/main.rs:3:1
|
3 | pub fn foo() {}
| ^^^^^^^^^^^^
Meta
rustc --version
:
1.88.0
@rustbot label A-name-mangling A-linkage