1 error: mutable borrow from immutable input(s)
2 --> mut_from_ref.rs:9:39
4 9 | fn this_wont_hurt_a_bit(&self) -> &mut Foo {
7 = note: `-D mut-from-ref` implied by `-D warnings`
8 note: immutable borrow here
9 --> mut_from_ref.rs:9:29
11 9 | fn this_wont_hurt_a_bit(&self) -> &mut Foo {
14 error: mutable borrow from immutable input(s)
15 --> mut_from_ref.rs:15:25
17 15 | fn ouch(x: &Foo) -> &mut Foo;
20 = note: `-D mut-from-ref` implied by `-D warnings`
21 note: immutable borrow here
22 --> mut_from_ref.rs:15:16
24 15 | fn ouch(x: &Foo) -> &mut Foo;
27 error: mutable borrow from immutable input(s)
28 --> mut_from_ref.rs:24:21
30 24 | fn fail(x: &u32) -> &mut u16 {
33 = note: `-D mut-from-ref` implied by `-D warnings`
34 note: immutable borrow here
35 --> mut_from_ref.rs:24:12
37 24 | fn fail(x: &u32) -> &mut u16 {
40 error: mutable borrow from immutable input(s)
41 --> mut_from_ref.rs:28:50
43 28 | fn fail_lifetime<'a>(x: &'a u32, y: &mut u32) -> &'a mut u32 {
46 = note: `-D mut-from-ref` implied by `-D warnings`
47 note: immutable borrow here
48 --> mut_from_ref.rs:28:25
50 28 | fn fail_lifetime<'a>(x: &'a u32, y: &mut u32) -> &'a mut u32 {
53 error: mutable borrow from immutable input(s)
54 --> mut_from_ref.rs:32:67
56 32 | fn fail_double<'a, 'b>(x: &'a u32, y: &'a u32, z: &'b mut u32) -> &'a mut u32 {
59 = note: `-D mut-from-ref` implied by `-D warnings`
60 note: immutable borrow here
61 --> mut_from_ref.rs:32:27
63 32 | fn fail_double<'a, 'b>(x: &'a u32, y: &'a u32, z: &'b mut u32) -> &'a mut u32 {
66 error: aborting due to previous error(s)
69 To learn more, run the command again with --verbose.