File tree 3 files changed +28
-11
lines changed
3 files changed +28
-11
lines changed Original file line number Diff line number Diff line change 1
- error: internal compiler error: Accessing `(*_8)` with the kind `Write(Move)` shouldn't be possible
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 borrowed content
14
+ --> $DIR/issue-20801.rs:42:22
15
+ |
16
+ LL | let c = unsafe { *mut_ptr() };
17
+ | ^^^^^^^^^^ cannot move out of borrowed content
18
+
19
+ error[E0507]: cannot move out of borrowed content
2
20
--> $DIR/issue-20801.rs:45:22
3
21
|
4
22
LL | let d = unsafe { *const_ptr() };
5
- | ^^^^^^^^^^^^
23
+ | ^^^^^^^^^^^^ cannot move out of borrowed content
6
24
7
- error: aborting due to previous error
25
+ error: aborting due to 4 previous errors
8
26
27
+ For more information about this error, try `rustc --explain E0507`.
Original file line number Diff line number Diff line change 8
8
// option. This file may not be copied, modified, or distributed
9
9
// except according to those terms.
10
10
11
- // ignore-test currently ICEs when using NLL (#52416)
12
-
13
11
// We used to ICE when moving out of a `*mut T` or `*const T`.
14
12
15
13
struct T ( u8 ) ;
Original file line number Diff line number Diff line change 1
- error[E0508]: cannot move out of type `[u8]`, a non-copy slice
2
- --> $DIR/issue-30355.rs:15:8
3
- |
4
- LL | &X(*Y)
5
- | ^^ cannot move out of here
6
-
7
1
error[E0161]: cannot move a value of type X: the size of X cannot be statically determined
8
2
--> $DIR/issue-30355.rs:15:6
9
3
|
@@ -16,6 +10,12 @@ error[E0161]: cannot move a value of type [u8]: the size of [u8] cannot be stati
16
10
LL | &X(*Y)
17
11
| ^^
18
12
13
+ error[E0508]: cannot move out of type `[u8]`, a non-copy slice
14
+ --> $DIR/issue-30355.rs:15:8
15
+ |
16
+ LL | &X(*Y)
17
+ | ^^ cannot move out of here
18
+
19
19
error: aborting due to 3 previous errors
20
20
21
21
Some errors occurred: E0161, E0508.
You can’t perform that action at this time.
0 commit comments