2017-02-07 21:05:30 +01:00
|
|
|
error: generally you want to avoid `&mut &mut _` if possible
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/mut_mut.rs:10:12
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-02-08 14:58:07 +01:00
|
|
|
10 | fn fun(x : &mut &mut u32) -> bool {
|
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
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/mut_mut.rs:24:17
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-05-11 15:46:48 +02:00
|
|
|
24 | let mut x = &mut &mut 1u32;
|
2017-02-07 21:05:30 +01:00
|
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: generally you want to avoid `&mut &mut _` if possible
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/mut_mut.rs:19:20
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
|
19 | ($p:expr) => { &mut $p }
|
|
|
|
| ^^^^^^^
|
|
|
|
...
|
2017-05-11 15:46:48 +02:00
|
|
|
39 | 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
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/mut_mut.rs:26:21
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-05-11 15:46:48 +02:00
|
|
|
26 | let mut y = &mut x;
|
2017-02-07 21:05:30 +01:00
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
error: generally you want to avoid `&mut &mut _` if possible
|
2017-09-23 22:35:06 +02:00
|
|
|
--> $DIR/mut_mut.rs:30:33
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-05-11 15:46:48 +02:00
|
|
|
30 | let y : &mut &mut u32 = &mut &mut 2;
|
2017-09-23 22:35:06 +02:00
|
|
|
| ^^^^^^^^^^^
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: generally you want to avoid `&mut &mut _` if possible
|
2017-09-23 22:35:06 +02:00
|
|
|
--> $DIR/mut_mut.rs:30:17
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-05-11 15:46:48 +02:00
|
|
|
30 | let y : &mut &mut u32 = &mut &mut 2;
|
2017-09-23 22:35:06 +02:00
|
|
|
| ^^^^^^^^^^^^^
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: generally you want to avoid `&mut &mut _` if possible
|
2017-09-23 22:35:06 +02:00
|
|
|
--> $DIR/mut_mut.rs:35:38
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-05-11 15:46:48 +02:00
|
|
|
35 | let y : &mut &mut &mut u32 = &mut &mut &mut 2;
|
2017-09-23 22:35:06 +02:00
|
|
|
| ^^^^^^^^^^^^^^^^
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: generally you want to avoid `&mut &mut _` if possible
|
2017-09-23 22:35:06 +02:00
|
|
|
--> $DIR/mut_mut.rs:35:17
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-05-11 15:46:48 +02:00
|
|
|
35 | let y : &mut &mut &mut u32 = &mut &mut &mut 2;
|
2017-09-23 22:35:06 +02:00
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: generally you want to avoid `&mut &mut _` if possible
|
2017-09-23 22:35:06 +02:00
|
|
|
--> $DIR/mut_mut.rs:35:22
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-05-11 15:46:48 +02:00
|
|
|
35 | let y : &mut &mut &mut u32 = &mut &mut &mut 2;
|
2017-09-23 22:35:06 +02:00
|
|
|
| ^^^^^^^^^^^^^
|
2017-02-07 21:05:30 +01:00
|
|
|
|
2018-01-16 17:06:27 +01:00
|
|
|
error: aborting due to 9 previous errors
|
|
|
|
|