2024-04-18 20:20:42 +00:00
|
|
|
error: this argument is a mutable reference, but not used mutably
|
2023-10-09 09:48:13 +00:00
|
|
|
--> tests/ui/needless_pass_by_ref_mut2.rs:8:26
|
2024-04-18 20:20:42 +00:00
|
|
|
|
|
2023-10-09 09:48:13 +00:00
|
|
|
LL | async fn inner_async3(x: &mut i32, y: &mut u32) {
|
|
|
|
| ^^^^^^^^ help: consider changing to: `&i32`
|
2024-04-18 20:20:42 +00:00
|
|
|
|
|
|
|
|
= 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 argument is a mutable reference, but not used mutably
|
2023-10-09 09:48:13 +00:00
|
|
|
--> tests/ui/needless_pass_by_ref_mut2.rs:16:39
|
2024-04-18 20:20:42 +00:00
|
|
|
|
|
2023-10-09 09:48:13 +00:00
|
|
|
LL | async fn inner_async4(u: &mut i32, v: &mut u32) {
|
|
|
|
| ^^^^^^^^ help: consider changing to: `&u32`
|
2024-04-18 20:20:42 +00:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|