rust/tests/ui/cast/unsupported-cast.stderr

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

10 lines
284 B
Plaintext
Raw Normal View History

2018-08-08 12:28:26 +00:00
error[E0606]: casting `f64` as `*const A` is invalid
2021-01-28 17:42:44 +00:00
--> $DIR/unsupported-cast.rs:4:20
2018-08-08 12:28:26 +00:00
|
2021-01-28 17:42:44 +00:00
LL | println!("{:?}", 1.0 as *const A);
2018-08-08 12:28:26 +00:00
| ^^^^^^^^^^^^^^^
error: aborting due to previous error
For more information about this error, try `rustc --explain E0606`.