We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I tried this code:
pub trait Trait { fn foo(x: i32, x: i32); } pub fn bar() { let _: fn(y: i32, y: i32); }
I expected to get two warnings and/or errors, due to the duplicate function argument names. However, the code compiles fine without warnings.
See also #140088
Issue reproduces on the playground with version 1.88.0-nightly (2025-04-07 e643f59f6da3a84f43e7)
1.88.0-nightly (2025-04-07 e643f59f6da3a84f43e7)
The text was updated successfully, but these errors were encountered:
Duplicate of #33995 / #104374.
Sorry, something went wrong.
No branches or pull requests
I tried this code:
I expected to get two warnings and/or errors, due to the duplicate function argument names. However, the code compiles fine without warnings.
See also #140088
Meta
Issue reproduces on the playground with version
1.88.0-nightly (2025-04-07 e643f59f6da3a84f43e7)
The text was updated successfully, but these errors were encountered: