-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
C-bugCategory: Clippy is not doing the correct thingCategory: Clippy is not doing the correct thingI-false-positiveIssue: The lint was triggered on code it shouldn't haveIssue: The lint was triggered on code it shouldn't have
Description
#![cfg_attr(feature = "cargo-clippy", deny(used_underscore_binding))]
pub fn f(bytes: &[u8]) {
for b in bytes {
println!("{}", b);
}
}
error: used binding `_next` which is prefixed with an underscore. A leading underscore signals that a binding will not be used.
--> src/lib.rs:4:5
|
4 | / for b in bytes {
5 | | println!("{}", b);
6 | | }
| |_____^
|
note: lint level defined here
--> src/lib.rs:1:44
|
1 | #![cfg_attr(feature = "cargo-clippy", deny(used_underscore_binding))]
| ^^^^^^^^^^^^^^^^^^^^^^^
= help: for further information visit https://github.com/Manishearth/rust-clippy/wiki#used_underscore_binding
Metadata
Metadata
Assignees
Labels
C-bugCategory: Clippy is not doing the correct thingCategory: Clippy is not doing the correct thingI-false-positiveIssue: The lint was triggered on code it shouldn't haveIssue: The lint was triggered on code it shouldn't have