diff options
Diffstat (limited to 'src/test/ui/nll/user-annotations/downcast-infer.rs')
-rw-r--r-- | src/test/ui/nll/user-annotations/downcast-infer.rs | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/test/ui/nll/user-annotations/downcast-infer.rs b/src/test/ui/nll/user-annotations/downcast-infer.rs deleted file mode 100644 index b27429f4d..000000000 --- a/src/test/ui/nll/user-annotations/downcast-infer.rs +++ /dev/null @@ -1,11 +0,0 @@ -// 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))) => (), - _ => (), - } -} |