| error: this parameter is a mutable reference but is not used mutably |
| --> tests/ui/needless_pass_by_ref_mut2.rs:8:26 |
| | |
| LL | async fn inner_async3(x: &mut i32, y: &mut u32) { |
| | ^----^^^ |
| | | |
| | help: consider removing this `mut` |
| | |
| = note: `-D clippy::needless-pass-by-ref-mut` implied by `-D warnings` |
| = help: to override `-D warnings` add `#[allow(clippy::needless_pass_by_ref_mut)]` |
| |
| error: this parameter is a mutable reference but is not used mutably |
| --> tests/ui/needless_pass_by_ref_mut2.rs:17:39 |
| | |
| LL | async fn inner_async4(u: &mut i32, v: &mut u32) { |
| | ^----^^^ |
| | | |
| | help: consider removing this `mut` |
| |
| error: this parameter is a mutable reference but is not used mutably |
| --> tests/ui/needless_pass_by_ref_mut2.rs:29:37 |
| | |
| LL | fn issue16267<'a>(msg: &str, slice: &'a mut [i32]) -> &'a [i32] { |
| | ^^^^----^^^^^ |
| | | |
| | help: consider removing this `mut` |
| |
| error: aborting due to 3 previous errors |
| |