]> git.lizzy.rs Git - rust.git/blob - src/test/ui/unsupported-cast.rs
Rollup merge of #57132 - daxpedda:master, r=steveklabnik
[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 }