2017-02-07 21:05:30 +01:00
|
|
|
error: generally you want to avoid `&mut &mut _` if possible
|
2019-01-07 22:33:18 +01:00
|
|
|
--> $DIR/mut_mut.rs:4:11
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | fn fun(x: &mut &mut u32) -> bool {
|
2018-12-10 06:27:19 +01:00
|
|
|
| ^^^^^^^^^^^^^
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-08-01 16:30:44 +02:00
|
|
|
= note: `-D clippy::mut-mut` implied by `-D warnings`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: generally you want to avoid `&mut &mut _` if possible
|
2019-01-07 22:33:18 +01:00
|
|
|
--> $DIR/mut_mut.rs:20:17
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | let mut x = &mut &mut 1u32;
|
2017-02-07 21:05:30 +01:00
|
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: generally you want to avoid `&mut &mut _` if possible
|
2019-01-07 22:33:18 +01:00
|
|
|
--> $DIR/mut_mut.rs:14:9
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | &mut $p
|
2018-12-10 06:27:19 +01:00
|
|
|
| ^^^^^^^
|
2017-02-07 21:05:30 +01:00
|
|
|
...
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | let mut z = mut_ptr!(&mut 3u32);
|
2017-02-07 21:05:30 +01:00
|
|
|
| ------------------- in this macro invocation
|
|
|
|
|
|
|
|
error: this expression mutably borrows a mutable reference. Consider reborrowing
|
2019-01-07 22:33:18 +01:00
|
|
|
--> $DIR/mut_mut.rs:22:21
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | let mut y = &mut x;
|
2017-02-07 21:05:30 +01:00
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
error: generally you want to avoid `&mut &mut _` if possible
|
2019-01-07 22:33:18 +01:00
|
|
|
--> $DIR/mut_mut.rs:26:32
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | let y: &mut &mut u32 = &mut &mut 2;
|
2018-12-10 06:27:19 +01:00
|
|
|
| ^^^^^^^^^^^
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: generally you want to avoid `&mut &mut _` if possible
|
2019-01-07 22:33:18 +01:00
|
|
|
--> $DIR/mut_mut.rs:26:16
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | let y: &mut &mut u32 = &mut &mut 2;
|
2018-12-10 06:27:19 +01:00
|
|
|
| ^^^^^^^^^^^^^
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: generally you want to avoid `&mut &mut _` if possible
|
2019-01-07 22:33:18 +01:00
|
|
|
--> $DIR/mut_mut.rs:31:37
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | let y: &mut &mut &mut u32 = &mut &mut &mut 2;
|
2018-12-10 06:27:19 +01:00
|
|
|
| ^^^^^^^^^^^^^^^^
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: generally you want to avoid `&mut &mut _` if possible
|
2019-01-07 22:33:18 +01:00
|
|
|
--> $DIR/mut_mut.rs:31:16
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | let y: &mut &mut &mut u32 = &mut &mut &mut 2;
|
2018-12-10 06:27:19 +01:00
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: generally you want to avoid `&mut &mut _` if possible
|
2019-01-07 22:33:18 +01:00
|
|
|
--> $DIR/mut_mut.rs:31:21
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | let y: &mut &mut &mut u32 = &mut &mut &mut 2;
|
2018-12-10 06:27:19 +01:00
|
|
|
| ^^^^^^^^^^^^^
|
2017-02-07 21:05:30 +01:00
|
|
|
|
2018-01-16 17:06:27 +01:00
|
|
|
error: aborting due to 9 previous errors
|
|
|
|
|