The variant of an enumeration has the same name as the function implemented for it, but this does not conflict and cannot call this function #113503
Labels
A-lints
Area: Lints (warnings about flaws in source code) such as unused_mut.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
The variant of an enumeration has the same name as the function implemented for it, but this does not conflict and cannot call this function
Example
Info
cargo check
no errors and warnings.rustc --version
:rustc 1.70.0 (90c541806 2023-05-31)
rustc +nightly --version
:rustc 1.72.0-nightly (fe7454bf4 2023-06-19)
Expected
error[E0592]: duplicate definitions with name 'Value'
or this function can be calledThe text was updated successfully, but these errors were encountered: