2020-01-23 00:00:00 +00:00
|
|
|
//@ check-pass
|
2019-01-12 14:55:23 +00:00
|
|
|
|
|
|
|
|
// 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))) => (),
|
|
|
|
|
_ => (),
|
|
|
|
|
}
|
|
|
|
|
}
|