blob: 0c6e0140d7a6e89d028eeb7b55ffd8c40f61c585 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
//@ 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))) => (),
_ => (),
}
}
|