summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-16994.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/issues/issue-16994.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-16994.rs b/src/test/ui/issues/issue-16994.rs
new file mode 100644
index 000000000..8d3074bce
--- /dev/null
+++ b/src/test/ui/issues/issue-16994.rs
@@ -0,0 +1,9 @@
+// check-pass
+
+fn cb<'a,T>(_x: Box<dyn Fn((&'a i32, &'a (Vec<&'static i32>, bool))) -> T>) -> T {
+ panic!()
+}
+
+fn main() {
+ cb(Box::new(|(k, &(ref v, b))| (*k, v.clone(), b)));
+}