]> git.lizzy.rs Git - rust.git/blob - src/test/ui/unsupported-cast.rs
Auto merge of #67000 - spastorino:remove-promoted-from-place, r=oli-obk
[rust.git] / src / test / ui / unsupported-cast.rs
1 // error-pattern:casting
2
3 struct A;
4
5 fn main() {
6   println!("{:?}", 1.0 as *const A); // Can't cast float to foreign.
7 }