summaryrefslogtreecommitdiffstats
path: root/src/test/ui/generics/issue-59508.fixed
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/generics/issue-59508.fixed')
-rw-r--r--src/test/ui/generics/issue-59508.fixed16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/test/ui/generics/issue-59508.fixed b/src/test/ui/generics/issue-59508.fixed
new file mode 100644
index 000000000..b5c60a162
--- /dev/null
+++ b/src/test/ui/generics/issue-59508.fixed
@@ -0,0 +1,16 @@
+// run-rustfix
+
+#![allow(dead_code)]
+
+// This test checks that generic parameter re-ordering diagnostic suggestions contain bounds.
+
+struct A;
+
+impl A {
+ pub fn do_things<'a, 'b: 'a, T>() {
+ //~^ ERROR lifetime parameters must be declared prior to type parameters
+ println!("panic");
+ }
+}
+
+fn main() {}