diff options
Diffstat (limited to 'tests/ui/cast/unsupported-cast.stderr')
-rw-r--r-- | tests/ui/cast/unsupported-cast.stderr | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ui/cast/unsupported-cast.stderr b/tests/ui/cast/unsupported-cast.stderr new file mode 100644 index 000000000..56a375a1d --- /dev/null +++ b/tests/ui/cast/unsupported-cast.stderr @@ -0,0 +1,9 @@ +error[E0606]: casting `f64` as `*const A` is invalid + --> $DIR/unsupported-cast.rs:4:20 + | +LL | println!("{:?}", 1.0 as *const A); + | ^^^^^^^^^^^^^^^ + +error: aborting due to previous error + +For more information about this error, try `rustc --explain E0606`. |