1 error: this function takes an immutable ref to return a mutable one:
2 --> $DIR/mut_from_ref.rs:9:39
4 9 | fn this_wont_hurt_a_bit(&self) -> &mut Foo {
7 note: lint level defined here
8 --> $DIR/mut_from_ref.rs:4:9
10 4 | #![deny(mut_from_ref)]
13 error: this function takes an immutable ref to return a mutable one:
14 --> $DIR/mut_from_ref.rs:15:25
16 15 | fn ouch(x: &Foo) -> &mut Foo;
19 error: this function takes an immutable ref to return a mutable one:
20 --> $DIR/mut_from_ref.rs:24:21
22 24 | fn fail(x: &u32) -> &mut u16 {
25 error: aborting due to 3 previous errors