Lint for unused borrows as part of UNUSED_MUST_USE
This commit is contained in:
parent
1a462831ad
commit
88abd7d81d
18 changed files with 113 additions and 35 deletions
|
@ -21,7 +21,7 @@ fn bar() -> usize {
|
|||
|
||||
fn foo() {
|
||||
let x: &[_] = &[Foo, Foo];
|
||||
&x[3..bar()];
|
||||
let _ = &x[3..bar()];
|
||||
}
|
||||
|
||||
fn main() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue