fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0308]: mismatched types 2 --> $DIR/mut-cross-borrowing.rs:7:7 3 | 4LL | f(x) 5 | - ^ expected `&mut isize`, found `Box<{integer}>` 6 | | 7 | arguments to this function are incorrect 8 | 9 = note: expected mutable reference `&mut isize` 10 found struct `Box<{integer}>` 11note: function defined here 12 --> $DIR/mut-cross-borrowing.rs:1:4 13 | 14LL | fn f(_: &mut isize) {} 15 | ^ ------------- 16help: consider mutably borrowing here 17 | 18LL | f(&mut x) 19 | ++++ 20 21error: aborting due to previous error 22 23For more information about this error, try `rustc --explain E0308`.