Sign in
android
/
toolchain
/
rustc
/
d720b3f2ba07cb42ff7b311589c99daefe3aaa22
/
.
/
tests
/
ui
/
nll
/
user-annotations
/
downcast-infer.rs
blob: b27429f4d190f3fe2f63e1baff4110b27c5533da [
file
] [
log
] [
blame
]
// check-pass
// Check that we don't try to downcast `_` when type-checking the annotation.
fn
main
()
{
let
x
=
Some
(
Some
(
Some
(
1
)));
match
x
{
Some
::<
Option
<
_
>>(
Some
(
Some
(
v
)))
=>
(),
_
=>
(),
}
}