]> git.lizzy.rs Git - rust.git/blob - src/test/ui/cast/cast-to-infer-ty.rs
Merge commit 'd556c56f792756dd7cfec742b9f2e07612dc10f4' into sync_cg_clif-2021-02-01
[rust.git] / src / test / ui / cast / cast-to-infer-ty.rs
1 // run-pass
2 // Check that we allow a cast to `_` so long as the target type can be
3 // inferred elsewhere.
4
5 pub fn main() {
6     let i: *const i32 = 0 as _;
7     assert!(i.is_null());
8 }