Sign in
android
/
toolchain
/
rustc
/
ff3f07ae99a30006dd85b9d73084edd9355c9db6
/
.
/
src
/
test
/
ui
/
nll
/
user-annotations
/
downcast-infer.rs
blob: 23b76bb196470984af9a50c1ce09bca138fd3f94 [
file
] [
log
] [
blame
]
// compile-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
)))
=>
(),
_
=>
(),
}
}