2017-02-07 20:05:30 +00:00
|
|
|
error: generally you want to avoid `&mut &mut _` if possible
|
2023-07-17 08:19:29 +00:00
|
|
|
--> $DIR/mut_mut.rs:14:11
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | fn fun(x: &mut &mut u32) -> bool {
|
2018-12-10 05:27:19 +00:00
|
|
|
| ^^^^^^^^^^^^^
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2018-08-01 14:30:44 +00:00
|
|
|
= note: `-D clippy::mut-mut` implied by `-D warnings`
|
2023-08-01 12:02:21 +00:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::mut_mut)]`
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
error: generally you want to avoid `&mut &mut _` if possible
|
2023-07-17 08:19:29 +00:00
|
|
|
--> $DIR/mut_mut.rs:31:17
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | let mut x = &mut &mut 1u32;
|
2017-02-07 20:05:30 +00:00
|
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: generally you want to avoid `&mut &mut _` if possible
|
2023-07-17 08:19:29 +00:00
|
|
|
--> $DIR/mut_mut.rs:46:25
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2023-03-24 13:04:35 +00:00
|
|
|
LL | let mut z = inline!(&mut $(&mut 3u32));
|
|
|
|
| ^
|
2020-02-07 03:34:06 +00:00
|
|
|
|
|
2023-03-24 13:04:35 +00:00
|
|
|
= note: this error originates in the macro `__inline_mac_fn_main` (in Nightly builds, run with -Z macro-backtrace for more info)
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
error: this expression mutably borrows a mutable reference. Consider reborrowing
|
2023-07-17 08:19:29 +00:00
|
|
|
--> $DIR/mut_mut.rs:33:21
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | let mut y = &mut x;
|
2017-02-07 20:05:30 +00:00
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
error: generally you want to avoid `&mut &mut _` if possible
|
2023-07-17 08:19:29 +00:00
|
|
|
--> $DIR/mut_mut.rs:37:32
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | let y: &mut &mut u32 = &mut &mut 2;
|
2018-12-10 05:27:19 +00:00
|
|
|
| ^^^^^^^^^^^
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
error: generally you want to avoid `&mut &mut _` if possible
|
2023-07-17 08:19:29 +00:00
|
|
|
--> $DIR/mut_mut.rs:37:16
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | let y: &mut &mut u32 = &mut &mut 2;
|
2018-12-10 05:27:19 +00:00
|
|
|
| ^^^^^^^^^^^^^
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
error: generally you want to avoid `&mut &mut _` if possible
|
2023-07-17 08:19:29 +00:00
|
|
|
--> $DIR/mut_mut.rs:42:37
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | let y: &mut &mut &mut u32 = &mut &mut &mut 2;
|
2018-12-10 05:27:19 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
error: generally you want to avoid `&mut &mut _` if possible
|
2023-07-17 08:19:29 +00:00
|
|
|
--> $DIR/mut_mut.rs:42:16
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | let y: &mut &mut &mut u32 = &mut &mut &mut 2;
|
2018-12-10 05:27:19 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
error: generally you want to avoid `&mut &mut _` if possible
|
2023-07-17 08:19:29 +00:00
|
|
|
--> $DIR/mut_mut.rs:42:21
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | let y: &mut &mut &mut u32 = &mut &mut &mut 2;
|
2018-12-10 05:27:19 +00:00
|
|
|
| ^^^^^^^^^^^^^
|
2017-02-07 20:05:30 +00:00
|
|
|
|
2018-01-16 16:06:27 +00:00
|
|
|
error: aborting due to 9 previous errors
|
|
|
|
|