summaryrefslogtreecommitdiffstats
path: root/tests/ui/generics/issue-83556.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/ui/generics/issue-83556.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/ui/generics/issue-83556.rs b/tests/ui/generics/issue-83556.rs
new file mode 100644
index 000000000..7cea1c863
--- /dev/null
+++ b/tests/ui/generics/issue-83556.rs
@@ -0,0 +1,4 @@
+struct Foo<T, 'a>(&'a ());
+//~^ ERROR lifetime parameters must be declared prior to
+
+fn main() {}