1 error[E0507]: cannot move out of borrowed content
2 --> $DIR/cannot-move-block-spans.rs:15:15
4 LL | let x = { *r }; //~ ERROR
5 | ^^ cannot move out of borrowed content
7 error[E0507]: cannot move out of borrowed content
8 --> $DIR/cannot-move-block-spans.rs:16:22
10 LL | let y = unsafe { *r }; //~ ERROR
11 | ^^ cannot move out of borrowed content
13 error[E0507]: cannot move out of borrowed content
14 --> $DIR/cannot-move-block-spans.rs:17:26
16 LL | let z = loop { break *r; }; //~ ERROR
17 | ^^ cannot move out of borrowed content
19 error[E0508]: cannot move out of type `[std::string::String; 2]`, a non-copy array
20 --> $DIR/cannot-move-block-spans.rs:21:15
22 LL | let x = { arr[0] }; //~ ERROR
23 | ^^^^^^ cannot move out of here
25 error[E0508]: cannot move out of type `[std::string::String; 2]`, a non-copy array
26 --> $DIR/cannot-move-block-spans.rs:22:22
28 LL | let y = unsafe { arr[0] }; //~ ERROR
29 | ^^^^^^ cannot move out of here
31 error[E0508]: cannot move out of type `[std::string::String; 2]`, a non-copy array
32 --> $DIR/cannot-move-block-spans.rs:23:26
34 LL | let z = loop { break arr[0]; }; //~ ERROR
35 | ^^^^^^ cannot move out of here
37 error[E0507]: cannot move out of borrowed content
38 --> $DIR/cannot-move-block-spans.rs:27:38
40 LL | let x = { let mut u = 0; u += 1; *r }; //~ ERROR
41 | ^^ cannot move out of borrowed content
43 error[E0507]: cannot move out of borrowed content
44 --> $DIR/cannot-move-block-spans.rs:28:45
46 LL | let y = unsafe { let mut u = 0; u += 1; *r }; //~ ERROR
47 | ^^ cannot move out of borrowed content
49 error[E0507]: cannot move out of borrowed content
50 --> $DIR/cannot-move-block-spans.rs:29:49
52 LL | let z = loop { let mut u = 0; u += 1; break *r; u += 2; }; //~ ERROR
53 | ^^ cannot move out of borrowed content
55 error: aborting due to 9 previous errors
57 Some errors occurred: E0507, E0508.
58 For more information about an error, try `rustc --explain E0507`.