2017-02-07 14:05:30 -06:00
|
|
|
error: generally you want to avoid `&mut &mut _` if possible
|
2021-10-09 08:54:16 -05:00
|
|
|
--> $DIR/mut_mut.rs:9:11
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | fn fun(x: &mut &mut u32) -> bool {
|
2018-12-09 23:27:19 -06:00
|
|
|
| ^^^^^^^^^^^^^
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
2018-08-01 09:30:44 -05:00
|
|
|
= note: `-D clippy::mut-mut` implied by `-D warnings`
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
|
|
error: generally you want to avoid `&mut &mut _` if possible
|
2023-03-07 08:40:55 -06:00
|
|
|
--> $DIR/mut_mut.rs:26:17
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | let mut x = &mut &mut 1u32;
|
2017-02-07 14:05:30 -06:00
|
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: generally you want to avoid `&mut &mut _` if possible
|
2023-03-07 08:40:55 -06:00
|
|
|
--> $DIR/mut_mut.rs:41:25
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
2023-03-07 08:40:55 -06:00
|
|
|
LL | let mut z = inline!(&mut $(&mut 3u32));
|
|
|
|
| ^
|
2020-02-06 21:34:06 -06:00
|
|
|
|
|
2023-03-07 08:40:55 -06: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 14:05:30 -06:00
|
|
|
|
|
|
|
error: this expression mutably borrows a mutable reference. Consider reborrowing
|
2023-03-07 08:40:55 -06:00
|
|
|
--> $DIR/mut_mut.rs:28:21
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | let mut y = &mut x;
|
2017-02-07 14:05:30 -06:00
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
error: generally you want to avoid `&mut &mut _` if possible
|
2023-03-07 08:40:55 -06:00
|
|
|
--> $DIR/mut_mut.rs:32:32
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
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
|
|
|
| ^^^^^^^^^^^
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
|
|
error: generally you want to avoid `&mut &mut _` if possible
|
2023-03-07 08:40:55 -06:00
|
|
|
--> $DIR/mut_mut.rs:32:16
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
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
|
|
|
| ^^^^^^^^^^^^^
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
|
|
error: generally you want to avoid `&mut &mut _` if possible
|
2023-03-07 08:40:55 -06:00
|
|
|
--> $DIR/mut_mut.rs:37:37
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
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
|
|
|
| ^^^^^^^^^^^^^^^^
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
|
|
error: generally you want to avoid `&mut &mut _` if possible
|
2023-03-07 08:40:55 -06:00
|
|
|
--> $DIR/mut_mut.rs:37:16
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
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
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
|
|
error: generally you want to avoid `&mut &mut _` if possible
|
2023-03-07 08:40:55 -06:00
|
|
|
--> $DIR/mut_mut.rs:37:21
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
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
|
|
|
| ^^^^^^^^^^^^^
|
2017-02-07 14:05:30 -06:00
|
|
|
|
2018-01-16 10:06:27 -06:00
|
|
|
error: aborting due to 9 previous errors
|
|
|
|
|