error[E0381]: borrow of possibly-uninitialized variable: `x`
  --> $DIR/borrowck-use-uninitialized-in-cast.rs:7:13
   |
LL |     let y = x as *const i32;
   |             ^ use of possibly-uninitialized `*x`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0381`.
