diff options
Diffstat (limited to 'tests/ui/generics/issue-59508-1.stderr')
-rw-r--r-- | tests/ui/generics/issue-59508-1.stderr | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/ui/generics/issue-59508-1.stderr b/tests/ui/generics/issue-59508-1.stderr new file mode 100644 index 000000000..1c510044f --- /dev/null +++ b/tests/ui/generics/issue-59508-1.stderr @@ -0,0 +1,8 @@ +error: lifetime parameters must be declared prior to type and const parameters + --> $DIR/issue-59508-1.rs:10:25 + | +LL | pub fn do_things<T, 'a, 'b: 'a>() { + | ----^^--^^----- help: reorder the parameters: lifetimes, then consts and types: `<'a, 'b: 'a, T>` + +error: aborting due to previous error + |