1 error[E0596]: cannot borrow `b` as mutable, as it is not declared as mutable
2 --> $DIR/mut-borrow-of-mut-ref.rs:7:7
5 | ^^^^^^ cannot borrow as mutable
7 note: the binding is already a mutable borrow
8 --> $DIR/mut-borrow-of-mut-ref.rs:4:13
10 LL | pub fn f(b: &mut i32) {
12 help: try removing `&mut` here
18 error[E0596]: cannot borrow `b` as mutable, as it is not declared as mutable
19 --> $DIR/mut-borrow-of-mut-ref.rs:11:12
22 | ^^^^^^ cannot borrow as mutable
24 note: the binding is already a mutable borrow
25 --> $DIR/mut-borrow-of-mut-ref.rs:4:13
27 LL | pub fn f(b: &mut i32) {
29 help: try removing `&mut` here
35 error[E0596]: cannot borrow `b` as mutable, as it is not declared as mutable
36 --> $DIR/mut-borrow-of-mut-ref.rs:18:12
39 | ^^^^^^ cannot borrow as mutable
41 note: the binding is already a mutable borrow
42 --> $DIR/mut-borrow-of-mut-ref.rs:17:13
44 LL | pub fn g(b: &mut i32) {
46 help: try removing `&mut` here
52 error[E0596]: cannot borrow `f` as mutable, as it is not declared as mutable
53 --> $DIR/mut-borrow-of-mut-ref.rs:35:5
56 | ^^^^^^^ cannot borrow as mutable
58 help: consider making the binding mutable
60 LL | pub fn baz(mut f: &mut String) {
63 error: aborting due to 4 previous errors
65 For more information about this error, try `rustc --explain E0596`.