]> git.lizzy.rs Git - rust.git/blob - src/test/ui/mut/mut-cross-borrowing.stderr
Rollup merge of #67749 - gilescope:keyword-in, r=Dylan-DPC
[rust.git] / src / test / ui / mut / mut-cross-borrowing.stderr
1 error[E0308]: mismatched types
2   --> $DIR/mut-cross-borrowing.rs:7:7
3    |
4 LL |     f(x)
5    |       ^
6    |       |
7    |       expected `&mut isize`, found struct `std::boxed::Box`
8    |       help: consider mutably borrowing here: `&mut x`
9    |
10    = note: expected mutable reference `&mut isize`
11                          found struct `std::boxed::Box<{integer}>`
12
13 error: aborting due to previous error
14
15 For more information about this error, try `rustc --explain E0308`.