]> git.lizzy.rs Git - rust.git/blob - src/test/ui/cast/unsupported-cast.rs
Rollup merge of #105955 - Nilstrieb:no-trivial-opt-wrappers-we-have-field-accesses...
[rust.git] / src / test / ui / cast / unsupported-cast.rs
1 struct A;
2
3 fn main() {
4   println!("{:?}", 1.0 as *const A); //~ERROR  casting `f64` as `*const A` is invalid
5 }