]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-20801.stderr
Auto merge of #54251 - varkor:silence-bad_style, r=Manishearth
[rust.git] / src / test / ui / issues / issue-20801.stderr
1 error[E0507]: cannot move out of borrowed content
2   --> $DIR/issue-20801.rs:36:22
3    |
4 LL |     let a = unsafe { *mut_ref() };
5    |                      ^^^^^^^^^^ cannot move out of borrowed content
6
7 error[E0507]: cannot move out of borrowed content
8   --> $DIR/issue-20801.rs:39:22
9    |
10 LL |     let b = unsafe { *imm_ref() };
11    |                      ^^^^^^^^^^ cannot move out of borrowed content
12
13 error[E0507]: cannot move out of dereference of raw pointer
14   --> $DIR/issue-20801.rs:42:22
15    |
16 LL |     let c = unsafe { *mut_ptr() };
17    |                      ^^^^^^^^^^ cannot move out of dereference of raw pointer
18
19 error[E0507]: cannot move out of dereference of raw pointer
20   --> $DIR/issue-20801.rs:45:22
21    |
22 LL |     let d = unsafe { *const_ptr() };
23    |                      ^^^^^^^^^^^^ cannot move out of dereference of raw pointer
24
25 error: aborting due to 4 previous errors
26
27 For more information about this error, try `rustc --explain E0507`.