]> git.lizzy.rs Git - rust.git/blob - tests/ui/mut_mut.stderr
Update changed ui tests
[rust.git] / tests / ui / mut_mut.stderr
1 error: generally you want to avoid `&mut &mut _` if possible
2   --> $DIR/mut_mut.rs:10:12
3    |
4 10 | fn fun(x : &mut &mut u32) -> bool {
5    |            ^^^^^^^^^^^^^
6    |
7    = note: `-D mut-mut` implied by `-D warnings`
8
9 error: generally you want to avoid `&mut &mut _` if possible
10   --> $DIR/mut_mut.rs:24:17
11    |
12 24 |     let mut x = &mut &mut 1u32;
13    |                 ^^^^^^^^^^^^^^
14
15 error: generally you want to avoid `&mut &mut _` if possible
16   --> $DIR/mut_mut.rs:19:20
17    |
18 19 |     ($p:expr) => { &mut $p }
19    |                    ^^^^^^^
20 ...
21 39 |     let mut z = mut_ptr!(&mut 3u32);
22    |                 ------------------- in this macro invocation
23
24 error: this expression mutably borrows a mutable reference. Consider reborrowing
25   --> $DIR/mut_mut.rs:26:21
26    |
27 26 |         let mut y = &mut x;
28    |                     ^^^^^^
29
30 error: generally you want to avoid `&mut &mut _` if possible
31   --> $DIR/mut_mut.rs:30:33
32    |
33 30 |         let y : &mut &mut u32 = &mut &mut 2;
34    |                                 ^^^^^^^^^^^
35
36 error: generally you want to avoid `&mut &mut _` if possible
37   --> $DIR/mut_mut.rs:30:17
38    |
39 30 |         let y : &mut &mut u32 = &mut &mut 2;
40    |                 ^^^^^^^^^^^^^
41
42 error: generally you want to avoid `&mut &mut _` if possible
43   --> $DIR/mut_mut.rs:35:38
44    |
45 35 |         let y : &mut &mut &mut u32 = &mut &mut &mut 2;
46    |                                      ^^^^^^^^^^^^^^^^
47
48 error: generally you want to avoid `&mut &mut _` if possible
49   --> $DIR/mut_mut.rs:35:17
50    |
51 35 |         let y : &mut &mut &mut u32 = &mut &mut &mut 2;
52    |                 ^^^^^^^^^^^^^^^^^^
53
54 error: generally you want to avoid `&mut &mut _` if possible
55   --> $DIR/mut_mut.rs:35:22
56    |
57 35 |         let y : &mut &mut &mut u32 = &mut &mut &mut 2;
58    |                      ^^^^^^^^^^^^^
59
60 error: aborting due to 9 previous errors
61