summaryrefslogtreecommitdiffstats
path: root/src/test/ui/match/match-unresolved-one-arm.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/match/match-unresolved-one-arm.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/test/ui/match/match-unresolved-one-arm.rs b/src/test/ui/match/match-unresolved-one-arm.rs
new file mode 100644
index 000000000..fa65d87b3
--- /dev/null
+++ b/src/test/ui/match/match-unresolved-one-arm.rs
@@ -0,0 +1,7 @@
+fn foo<T>() -> T { panic!("Rocks for my pillow") }
+
+fn main() {
+ let x = match () { //~ ERROR type annotations needed
+ () => foo() // T here should be unresolved
+ };
+}