rust/tests/ui/issues/issue-14845.stderr
2023-01-11 09:32:08 +00:00

16 lines
441 B
Plaintext

error[E0606]: casting `&[u8; 1]` as `*mut u8` is invalid
--> $DIR/issue-14845.rs:7:14
|
LL | let _f = &x.a as *mut u8;
| ^^^^^^^^^^^^^^^
error[E0606]: casting `&[u8; 1]` as `*mut u8` is invalid
--> $DIR/issue-14845.rs:10:14
|
LL | let _v = &local as *mut u8;
| ^^^^^^^^^^^^^^^^^
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0606`.