|
| 1 | +error[E0507]: cannot move out of borrowed content |
| 2 | + --> $DIR/cannot-move-block-spans.rs:15:15 |
| 3 | + | |
| 4 | +LL | let x = { *r }; //~ ERROR |
| 5 | + | ^^ |
| 6 | + | | |
| 7 | + | cannot move out of borrowed content |
| 8 | + | help: consider removing this dereference operator: `r` |
| 9 | + |
| 10 | +error[E0507]: cannot move out of borrowed content |
| 11 | + --> $DIR/cannot-move-block-spans.rs:16:22 |
| 12 | + | |
| 13 | +LL | let y = unsafe { *r }; //~ ERROR |
| 14 | + | ^^ |
| 15 | + | | |
| 16 | + | cannot move out of borrowed content |
| 17 | + | help: consider removing this dereference operator: `r` |
| 18 | + |
| 19 | +error[E0507]: cannot move out of borrowed content |
| 20 | + --> $DIR/cannot-move-block-spans.rs:17:26 |
| 21 | + | |
| 22 | +LL | let z = loop { break *r; }; //~ ERROR |
| 23 | + | ^^ |
| 24 | + | | |
| 25 | + | cannot move out of borrowed content |
| 26 | + | help: consider removing this dereference operator: `r` |
| 27 | + |
| 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 |
| 30 | + | |
| 31 | +LL | let x = { arr[0] }; //~ ERROR |
| 32 | + | ^^^^^^ |
| 33 | + | | |
| 34 | + | cannot move out of here |
| 35 | + | help: consider using a reference instead: `&arr[0]` |
| 36 | + |
| 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 |
| 39 | + | |
| 40 | +LL | let y = unsafe { arr[0] }; //~ ERROR |
| 41 | + | ^^^^^^ |
| 42 | + | | |
| 43 | + | cannot move out of here |
| 44 | + | help: consider using a reference instead: `&arr[0]` |
| 45 | + |
| 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 |
| 48 | + | |
| 49 | +LL | let z = loop { break arr[0]; }; //~ ERROR |
| 50 | + | ^^^^^^ |
| 51 | + | | |
| 52 | + | cannot move out of here |
| 53 | + | help: consider using a reference instead: `&arr[0]` |
| 54 | + |
| 55 | +error[E0507]: cannot move out of borrowed content |
| 56 | + --> $DIR/cannot-move-block-spans.rs:27:38 |
| 57 | + | |
| 58 | +LL | let x = { let mut u = 0; u += 1; *r }; //~ ERROR |
| 59 | + | ^^ |
| 60 | + | | |
| 61 | + | cannot move out of borrowed content |
| 62 | + | help: consider removing this dereference operator: `r` |
| 63 | + |
| 64 | +error[E0507]: cannot move out of borrowed content |
| 65 | + --> $DIR/cannot-move-block-spans.rs:28:45 |
| 66 | + | |
| 67 | +LL | let y = unsafe { let mut u = 0; u += 1; *r }; //~ ERROR |
| 68 | + | ^^ |
| 69 | + | | |
| 70 | + | cannot move out of borrowed content |
| 71 | + | help: consider removing this dereference operator: `r` |
| 72 | + |
| 73 | +error[E0507]: cannot move out of borrowed content |
| 74 | + --> $DIR/cannot-move-block-spans.rs:29:49 |
| 75 | + | |
| 76 | +LL | let z = loop { let mut u = 0; u += 1; break *r; u += 2; }; //~ ERROR |
| 77 | + | ^^ |
| 78 | + | | |
| 79 | + | cannot move out of borrowed content |
| 80 | + | help: consider removing this dereference operator: `r` |
| 81 | + |
| 82 | +error: aborting due to 9 previous errors |
| 83 | + |
| 84 | +Some errors occurred: E0507, E0508. |
| 85 | +For more information about an error, try `rustc --explain E0507`. |
0 commit comments