Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
cast
/
cast-to-infer-ty.rs
blob: d82eaa9f8ea93bc8d3bcd8e3dc348341a2030fcc [
file
] [
log
] [
blame
] [
edit
]
//@ run-pass
// Check that we allow a cast to `_` so long as the target type can be
// inferred elsewhere.
pub
fn
main
()
{
let
i
:
*
const
i32
=
0
as
_
;
assert
!(
i
.
is_null
());
}