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