mirror of
https://github.com/rust-lang/rust.git
synced 2025-09-28 13:46:03 +00:00
12 lines
227 B
Rust
12 lines
227 B
Rust
//@ 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))) => (),
|
|
_ => (),
|
|
}
|
|
}
|