summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-54943.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/issues/issue-54943.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-54943.rs b/src/test/ui/issues/issue-54943.rs
new file mode 100644
index 000000000..85722300b
--- /dev/null
+++ b/src/test/ui/issues/issue-54943.rs
@@ -0,0 +1,10 @@
+fn foo<T: 'static>() { }
+
+fn boo<'a>() {
+ return;
+
+ let x = foo::<&'a u32>();
+ //~^ ERROR
+}
+
+fn main() {}