]> git.proxmox.com Git - rustc.git/blob - tests/ui/mut/mut-cross-borrowing.stderr
New upstream version 1.76.0+dfsg1
[rustc.git] / tests / 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 | - ^ 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}>`
11 note: function defined here
12 --> $DIR/mut-cross-borrowing.rs:1:4
13 |
14 LL | fn f(_: &mut isize) {}
15 | ^ -------------
16 help: consider mutably borrowing here
17 |
18 LL | f(&mut x)
19 | ++++
20
21 error: aborting due to 1 previous error
22
23 For more information about this error, try `rustc --explain E0308`.