2017-02-07 14:05:30 -06:00
|
|
|
error: generally you want to avoid `&mut &mut _` if possible
|
2018-10-06 11:18:06 -05:00
|
|
|
--> $DIR/mut_mut.rs:20:12
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
2018-10-06 11:18:06 -05:00
|
|
|
20 | fn fun(x : &mut &mut u32) -> bool {
|
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
|
2018-10-06 11:18:06 -05:00
|
|
|
--> $DIR/mut_mut.rs:34:17
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
2018-10-06 11:18:06 -05:00
|
|
|
34 | let mut x = &mut &mut 1u32;
|
2017-02-07 14:05:30 -06:00
|
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: generally you want to avoid `&mut &mut _` if possible
|
2018-10-06 11:18:06 -05:00
|
|
|
--> $DIR/mut_mut.rs:29:20
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
2018-10-06 11:18:06 -05:00
|
|
|
29 | ($p:expr) => { &mut $p }
|
2017-02-07 14:05:30 -06:00
|
|
|
| ^^^^^^^
|
|
|
|
...
|
2018-10-06 11:18:06 -05:00
|
|
|
49 | let mut z = mut_ptr!(&mut 3u32);
|
2017-02-07 14:05:30 -06:00
|
|
|
| ------------------- in this macro invocation
|
|
|
|
|
|
|
|
error: this expression mutably borrows a mutable reference. Consider reborrowing
|
2018-10-06 11:18:06 -05:00
|
|
|
--> $DIR/mut_mut.rs:36:21
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
2018-10-06 11:18:06 -05:00
|
|
|
36 | let mut y = &mut x;
|
2017-02-07 14:05:30 -06:00
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
error: generally you want to avoid `&mut &mut _` if possible
|
2018-10-06 11:18:06 -05:00
|
|
|
--> $DIR/mut_mut.rs:40:33
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
2018-10-06 11:18:06 -05:00
|
|
|
40 | let y : &mut &mut u32 = &mut &mut 2;
|
2017-09-23 15:35:06 -05:00
|
|
|
| ^^^^^^^^^^^
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
|
|
error: generally you want to avoid `&mut &mut _` if possible
|
2018-10-06 11:18:06 -05:00
|
|
|
--> $DIR/mut_mut.rs:40:17
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
2018-10-06 11:18:06 -05:00
|
|
|
40 | let y : &mut &mut u32 = &mut &mut 2;
|
2017-09-23 15:35:06 -05:00
|
|
|
| ^^^^^^^^^^^^^
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
|
|
error: generally you want to avoid `&mut &mut _` if possible
|
2018-10-06 11:18:06 -05:00
|
|
|
--> $DIR/mut_mut.rs:45:38
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
2018-10-06 11:18:06 -05:00
|
|
|
45 | let y : &mut &mut &mut u32 = &mut &mut &mut 2;
|
2017-09-23 15:35:06 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
|
|
error: generally you want to avoid `&mut &mut _` if possible
|
2018-10-06 11:18:06 -05:00
|
|
|
--> $DIR/mut_mut.rs:45:17
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
2018-10-06 11:18:06 -05:00
|
|
|
45 | let y : &mut &mut &mut u32 = &mut &mut &mut 2;
|
2017-09-23 15:35:06 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
|
|
error: generally you want to avoid `&mut &mut _` if possible
|
2018-10-06 11:18:06 -05:00
|
|
|
--> $DIR/mut_mut.rs:45:22
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
2018-10-06 11:18:06 -05:00
|
|
|
45 | let y : &mut &mut &mut u32 = &mut &mut &mut 2;
|
2017-09-23 15:35:06 -05:00
|
|
|
| ^^^^^^^^^^^^^
|
2017-02-07 14:05:30 -06:00
|
|
|
|
2018-01-16 10:06:27 -06:00
|
|
|
error: aborting due to 9 previous errors
|
|
|
|
|