os-rust/src/test/ui/borrowck/borrowck-use-uninitialized-in-cast.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
369 B
Text
Raw Normal View History

error[E0381]: binding `*x` isn't initialized
--> $DIR/borrowck-use-uninitialized-in-cast.rs:7:13
2018-08-08 14:28:26 +02:00
|
LL | let x: &i32;
| - variable declared here
LL | let y = x as *const i32;
| ^ `*x` borrowed here but it isn't initialized
2018-08-08 14:28:26 +02:00
error: aborting due to previous error
For more information about this error, try `rustc --explain E0381`.