summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-19127.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/issues/issue-19127.rs')
-rw-r--r--tests/ui/issues/issue-19127.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ui/issues/issue-19127.rs b/tests/ui/issues/issue-19127.rs
new file mode 100644
index 000000000..c847ac9e4
--- /dev/null
+++ b/tests/ui/issues/issue-19127.rs
@@ -0,0 +1,10 @@
+// run-pass
+#![allow(unused_variables)]
+// pretty-expanded FIXME #23616
+
+fn foo<T, F: FnOnce(T) -> T>(f: F) {}
+fn id<'a>(input: &'a u8) -> &'a u8 { input }
+
+fn main() {
+ foo(id);
+}