rust/src/test/ui/borrowck/borrowck-use-uninitialized-in-cast.ast.nll.stderr
2018-12-25 21:08:33 -07:00

10 lines
385 B
Plaintext

error[E0381]: borrow of possibly uninitialized variable: `x`
--> $DIR/borrowck-use-uninitialized-in-cast.rs:10:13
|
LL | let y = x as *const i32; //[ast]~ ERROR use of possibly uninitialized variable: `*x` [E0381]
| ^ use of possibly uninitialized `*x`
error: aborting due to previous error
For more information about this error, try `rustc --explain E0381`.