summaryrefslogtreecommitdiffstats
path: root/tests/ui/generics/issue-80512-param-reordering-with-defaults.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/generics/issue-80512-param-reordering-with-defaults.stderr')
-rw-r--r--tests/ui/generics/issue-80512-param-reordering-with-defaults.stderr8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/ui/generics/issue-80512-param-reordering-with-defaults.stderr b/tests/ui/generics/issue-80512-param-reordering-with-defaults.stderr
new file mode 100644
index 000000000..70793a9c9
--- /dev/null
+++ b/tests/ui/generics/issue-80512-param-reordering-with-defaults.stderr
@@ -0,0 +1,8 @@
+error: lifetime parameters must be declared prior to type and const parameters
+ --> $DIR/issue-80512-param-reordering-with-defaults.rs:3:18
+ |
+LL | struct S<T = (), 'a>(&'a T);
+ | ---------^^- help: reorder the parameters: lifetimes, then consts and types: `<'a, T = ()>`
+
+error: aborting due to previous error
+