]> git.lizzy.rs Git - rust.git/blob - src/test/ui/borrowck/borrowck-move-in-irrefut-pat.mir.stderr
Auto merge of #53133 - Zoxc:gen-int, r=eddyb
[rust.git] / src / test / ui / borrowck / borrowck-move-in-irrefut-pat.mir.stderr
1 error[E0507]: cannot move out of borrowed content
2   --> $DIR/borrowck-move-in-irrefut-pat.rs:16:13
3    |
4 LL | fn arg_item(&_x: &String) {}
5    |             ^--
6    |             ||
7    |             |data moved here
8    |             |help: to prevent move, use ref or ref mut: `ref _x`
9    |             cannot move out of borrowed content
10
11 error[E0507]: cannot move out of borrowed content
12   --> $DIR/borrowck-move-in-irrefut-pat.rs:21:11
13    |
14 LL |     with(|&_x| ())
15    |           ^--
16    |           ||
17    |           |data moved here
18    |           |help: to prevent move, use ref or ref mut: `ref _x`
19    |           cannot move out of borrowed content
20
21 error[E0507]: cannot move out of borrowed content
22   --> $DIR/borrowck-move-in-irrefut-pat.rs:27:15
23    |
24 LL |     let &_x = &"hi".to_string();
25    |          --   ^^^^^^^^^^^^^^^^^ cannot move out of borrowed content
26    |          |
27    |          data moved here
28    |          help: to prevent move, use ref or ref mut: `ref _x`
29
30 error: aborting due to 3 previous errors
31
32 For more information about this error, try `rustc --explain E0507`.