move a bunch of tests
This commit is contained in:
parent
6cf47ff4f0
commit
61f6fa70ac
5
src/test/ui/cast/unsupported-cast.rs
Normal file
5
src/test/ui/cast/unsupported-cast.rs
Normal file
@ -0,0 +1,5 @@
|
||||
struct A;
|
||||
|
||||
fn main() {
|
||||
println!("{:?}", 1.0 as *const A); //~ERROR casting `f64` as `*const A` is invalid
|
||||
}
|
@ -1,7 +1,7 @@
|
||||
error[E0606]: casting `f64` as `*const A` is invalid
|
||||
--> $DIR/unsupported-cast.rs:6:20
|
||||
--> $DIR/unsupported-cast.rs:4:20
|
||||
|
|
||||
LL | println!("{:?}", 1.0 as *const A); // Can't cast float to foreign.
|
||||
LL | println!("{:?}", 1.0 as *const A);
|
||||
| ^^^^^^^^^^^^^^^
|
||||
|
||||
error: aborting due to previous error
|
@ -1,7 +0,0 @@
|
||||
// error-pattern:casting
|
||||
|
||||
struct A;
|
||||
|
||||
fn main() {
|
||||
println!("{:?}", 1.0 as *const A); // Can't cast float to foreign.
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user