Sign in
android
/
toolchain
/
rustc
/
ff3f07ae99a30006dd85b9d73084edd9355c9db6
/
.
/
src
/
test
/
run-pass
/
cast-to-infer-ty.rs
blob: e29860cbfbf5fd3e48031b993b0aefc0af4cbe42 [
file
] [
log
] [
blame
]
// 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
());
}