rust/src/test/ui/issues/issue-14845.stderr
2018-12-25 21:08:33 -07:00

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