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
use std::ops::Range; fn range_end(Range { start, end }: Range<u32>) -> u32 { end }
gives
warning: unused variable: `start` --> test.rs:2:22 | 2 | fn range_end(Range { start, end }: Range<u32>) -> u32 { | ^^^^^ | = note: #[warn(unused_variables)] on by default = note: to avoid this warning, consider using `_start` instead
You can’t just change start to _start here, of course—we should suggest start: _ instead.
start
_start
start: _
The text was updated successfully, but these errors were encountered:
#47390 has more discussion, so I'll close in favor of that. Thanks!
Sorry, something went wrong.
No branches or pull requests
gives
You can’t just change
start
to_start
here, of course—we should suggeststart: _
instead.The text was updated successfully, but these errors were encountered: