about summary refs log tree commit diff
path: root/src/test/ui/error-codes
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-01-07 20:43:21 +0100
committerGitHub <noreply@github.com>2023-01-07 20:43:21 +0100
commit0c8d11b97ce209ce9cda03c0a146d7224aaa7ce7 (patch)
tree29cf98772eab3e2b863bf3e4328942a04314b3b9 /src/test/ui/error-codes
parent3d18c4d62d50df273efa8c4b66a12aa010827640 (diff)
parent5cccb36cfbc887da04dc367c24d2b4947c993ff9 (diff)
downloadrust-0c8d11b97ce209ce9cda03c0a146d7224aaa7ce7.tar.gz
rust-0c8d11b97ce209ce9cda03c0a146d7224aaa7ce7.zip
Rollup merge of #105859 - compiler-errors:hr-lifetime-add, r=davidtwco
Point out span where we could introduce higher-ranked lifetime

Somewhat addresses #105422, but not really. We don't have that much useful information here since we're still in resolution :^(

Maybe this suggestion isn't worth it. If the reviewer has an idea how we can get a more succinct binder information for a structured suggestion, it would be appreciated.
Diffstat (limited to 'src/test/ui/error-codes')
-rw-r--r--src/test/ui/error-codes/E0637.stderr6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/test/ui/error-codes/E0637.stderr b/src/test/ui/error-codes/E0637.stderr
index 35a4b34fb0a..78341735e19 100644
--- a/src/test/ui/error-codes/E0637.stderr
+++ b/src/test/ui/error-codes/E0637.stderr
@@ -21,6 +21,12 @@ error[E0637]: `&` without an explicit lifetime name cannot be used here
    |
 LL |     T: Into<&u32>,
    |             ^ explicit lifetime name needed here
+   |
+help: consider introducing a higher-ranked lifetime here with `for<'a>`
+  --> $DIR/E0637.rs:13:8
+   |
+LL |     T: Into<&u32>,
+   |        ^
 
 error: aborting due to 3 previous errors