summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-14845.stderr
blob: 2fa9fbaa887bc9a8f590eb8c7fda98400fc34fdb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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`.