rust/tests/ui/mut_mut.stderr

62 lines
2.0 KiB
Plaintext
Raw Normal View History

error: generally you want to avoid `&mut &mut _` if possible
2024-03-08 20:50:45 -06:00
--> tests/ui/mut_mut.rs:15:11
|
2018-12-27 09:57:55 -06:00
LL | fn fun(x: &mut &mut u32) -> bool {
2018-12-09 23:27:19 -06:00
| ^^^^^^^^^^^^^
|
= note: `-D clippy::mut-mut` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::mut_mut)]`
error: generally you want to avoid `&mut &mut _` if possible
2024-03-08 20:50:45 -06:00
--> tests/ui/mut_mut.rs:32:17
|
2018-12-27 09:57:55 -06:00
LL | let mut x = &mut &mut 1u32;
| ^^^^^^^^^^^^^^
error: generally you want to avoid `&mut &mut _` if possible
2024-03-08 20:50:45 -06:00
--> tests/ui/mut_mut.rs:47:25
|
LL | let mut z = inline!(&mut $(&mut 3u32));
| ^
|
= note: this error originates in the macro `__inline_mac_fn_main` (in Nightly builds, run with -Z macro-backtrace for more info)
error: this expression mutably borrows a mutable reference. Consider reborrowing
2024-03-08 20:50:45 -06:00
--> tests/ui/mut_mut.rs:34:21
|
2018-12-27 09:57:55 -06:00
LL | let mut y = &mut x;
| ^^^^^^
error: generally you want to avoid `&mut &mut _` if possible
2024-03-08 20:50:45 -06:00
--> tests/ui/mut_mut.rs:38:32
|
2018-12-27 09:57:55 -06:00
LL | let y: &mut &mut u32 = &mut &mut 2;
2018-12-09 23:27:19 -06:00
| ^^^^^^^^^^^
error: generally you want to avoid `&mut &mut _` if possible
2024-03-08 20:50:45 -06:00
--> tests/ui/mut_mut.rs:38:16
|
2018-12-27 09:57:55 -06:00
LL | let y: &mut &mut u32 = &mut &mut 2;
2018-12-09 23:27:19 -06:00
| ^^^^^^^^^^^^^
error: generally you want to avoid `&mut &mut _` if possible
2024-03-08 20:50:45 -06:00
--> tests/ui/mut_mut.rs:43:37
|
2018-12-27 09:57:55 -06:00
LL | let y: &mut &mut &mut u32 = &mut &mut &mut 2;
2018-12-09 23:27:19 -06:00
| ^^^^^^^^^^^^^^^^
error: generally you want to avoid `&mut &mut _` if possible
2024-03-08 20:50:45 -06:00
--> tests/ui/mut_mut.rs:43:16
|
2018-12-27 09:57:55 -06:00
LL | let y: &mut &mut &mut u32 = &mut &mut &mut 2;
2018-12-09 23:27:19 -06:00
| ^^^^^^^^^^^^^^^^^^
error: generally you want to avoid `&mut &mut _` if possible
2024-03-08 20:50:45 -06:00
--> tests/ui/mut_mut.rs:43:21
|
2018-12-27 09:57:55 -06:00
LL | let y: &mut &mut &mut u32 = &mut &mut &mut 2;
2018-12-09 23:27:19 -06:00
| ^^^^^^^^^^^^^
2018-01-16 10:06:27 -06:00
error: aborting due to 9 previous errors