about summary refs log tree commit diff
path: root/tests/ui/error-codes
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2025-06-24 18:59:29 +0000
committerMichael Goulet <michael@errs.io>2025-06-24 18:59:42 +0000
commit250b5d204f499c326699b0e2adf7d7757e55f16c (patch)
tree5dae4bb56bf85510af0f57a61e904a7e8fad763f /tests/ui/error-codes
parent36b21637e93b038453924d3c66821089e71d8baa (diff)
downloadrust-250b5d204f499c326699b0e2adf7d7757e55f16c.tar.gz
rust-250b5d204f499c326699b0e2adf7d7757e55f16c.zip
Make missing lifetime suggestion verbose
Diffstat (limited to 'tests/ui/error-codes')
-rw-r--r--tests/ui/error-codes/E0261.stderr16
1 files changed, 11 insertions, 5 deletions
diff --git a/tests/ui/error-codes/E0261.stderr b/tests/ui/error-codes/E0261.stderr
index 0eab2dc0ee0..9ca26dc8459 100644
--- a/tests/ui/error-codes/E0261.stderr
+++ b/tests/ui/error-codes/E0261.stderr
@@ -2,17 +2,23 @@ error[E0261]: use of undeclared lifetime name `'a`
   --> $DIR/E0261.rs:1:12
    |
 LL | fn foo(x: &'a str) { }
-   |       -    ^^ undeclared lifetime
-   |       |
-   |       help: consider introducing lifetime `'a` here: `<'a>`
+   |            ^^ undeclared lifetime
+   |
+help: consider introducing lifetime `'a` here
+   |
+LL | fn foo<'a>(x: &'a str) { }
+   |       ++++
 
 error[E0261]: use of undeclared lifetime name `'a`
   --> $DIR/E0261.rs:5:9
    |
-LL | struct Foo {
-   |           - help: consider introducing lifetime `'a` here: `<'a>`
 LL |     x: &'a str,
    |         ^^ undeclared lifetime
+   |
+help: consider introducing lifetime `'a` here
+   |
+LL | struct Foo<'a> {
+   |           ++++
 
 error: aborting due to 2 previous errors