1 error[E0507]: cannot move out of borrowed content
2 --> $DIR/cannot-move-block-spans.rs:15:15
4 LL | let x = { *r }; //~ ERROR
7 | cannot move out of borrowed content
8 | help: consider removing the `*`: `r`
10 error[E0507]: cannot move out of borrowed content
11 --> $DIR/cannot-move-block-spans.rs:16:22
13 LL | let y = unsafe { *r }; //~ ERROR
16 | cannot move out of borrowed content
17 | help: consider removing the `*`: `r`
19 error[E0507]: cannot move out of borrowed content
20 --> $DIR/cannot-move-block-spans.rs:17:26
22 LL | let z = loop { break *r; }; //~ ERROR
25 | cannot move out of borrowed content
26 | help: consider removing the `*`: `r`
28 error[E0508]: cannot move out of type `[std::string::String; 2]`, a non-copy array
29 --> $DIR/cannot-move-block-spans.rs:21:15
31 LL | let x = { arr[0] }; //~ ERROR
34 | cannot move out of here
35 | help: consider borrowing here: `&arr[0]`
37 error[E0508]: cannot move out of type `[std::string::String; 2]`, a non-copy array
38 --> $DIR/cannot-move-block-spans.rs:22:22
40 LL | let y = unsafe { arr[0] }; //~ ERROR
43 | cannot move out of here
44 | help: consider borrowing here: `&arr[0]`
46 error[E0508]: cannot move out of type `[std::string::String; 2]`, a non-copy array
47 --> $DIR/cannot-move-block-spans.rs:23:26
49 LL | let z = loop { break arr[0]; }; //~ ERROR
52 | cannot move out of here
53 | help: consider borrowing here: `&arr[0]`
55 error[E0507]: cannot move out of borrowed content
56 --> $DIR/cannot-move-block-spans.rs:27:38
58 LL | let x = { let mut u = 0; u += 1; *r }; //~ ERROR
61 | cannot move out of borrowed content
62 | help: consider removing the `*`: `r`
64 error[E0507]: cannot move out of borrowed content
65 --> $DIR/cannot-move-block-spans.rs:28:45
67 LL | let y = unsafe { let mut u = 0; u += 1; *r }; //~ ERROR
70 | cannot move out of borrowed content
71 | help: consider removing the `*`: `r`
73 error[E0507]: cannot move out of borrowed content
74 --> $DIR/cannot-move-block-spans.rs:29:49
76 LL | let z = loop { let mut u = 0; u += 1; break *r; u += 2; }; //~ ERROR
79 | cannot move out of borrowed content
80 | help: consider removing the `*`: `r`
82 error: aborting due to 9 previous errors
84 Some errors occurred: E0507, E0508.
85 For more information about an error, try `rustc --explain E0507`.