Sign in
fuchsia
/
third_party
/
rust
/
12307b3b08edee543a78fb9d4a837fbd6d6ac0fa
/
.
/
src
/
test
/
ui
/
cast-to-infer-ty.rs
blob: 053ebb621a7fe58012786e2f25f5a8374a2d10c1 [
file
] [
log
] [
blame
]
// 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
());
}