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
286 B
Plaintext
Raw Normal View History

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