summaryrefslogtreecommitdiffstats
path: root/src/test/ui/unboxed-closures/non-tupled-arg-mismatch.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/unboxed-closures/non-tupled-arg-mismatch.rs')
-rw-r--r--src/test/ui/unboxed-closures/non-tupled-arg-mismatch.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/test/ui/unboxed-closures/non-tupled-arg-mismatch.rs b/src/test/ui/unboxed-closures/non-tupled-arg-mismatch.rs
new file mode 100644
index 000000000..925463d6d
--- /dev/null
+++ b/src/test/ui/unboxed-closures/non-tupled-arg-mismatch.rs
@@ -0,0 +1,8 @@
+#![feature(unboxed_closures)]
+
+fn a<F: Fn<usize>>(f: F) {}
+
+fn main() {
+ a(|_: usize| {});
+ //~^ ERROR mismatched types
+}