summaryrefslogtreecommitdiffstats
path: root/src/test/ui/single-use-lifetime/one-use-in-inherent-method-argument.stderr
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:19:13 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:19:13 +0000
commit218caa410aa38c29984be31a5229b9fa717560ee (patch)
treec54bd55eeb6e4c508940a30e94c0032fbd45d677 /src/test/ui/single-use-lifetime/one-use-in-inherent-method-argument.stderr
parentReleasing progress-linux version 1.67.1+dfsg1-1~progress7.99u1. (diff)
downloadrustc-218caa410aa38c29984be31a5229b9fa717560ee.tar.xz
rustc-218caa410aa38c29984be31a5229b9fa717560ee.zip
Merging upstream version 1.68.2+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/test/ui/single-use-lifetime/one-use-in-inherent-method-argument.stderr')
-rw-r--r--src/test/ui/single-use-lifetime/one-use-in-inherent-method-argument.stderr35
1 files changed, 0 insertions, 35 deletions
diff --git a/src/test/ui/single-use-lifetime/one-use-in-inherent-method-argument.stderr b/src/test/ui/single-use-lifetime/one-use-in-inherent-method-argument.stderr
deleted file mode 100644
index 39507785b..000000000
--- a/src/test/ui/single-use-lifetime/one-use-in-inherent-method-argument.stderr
+++ /dev/null
@@ -1,35 +0,0 @@
-error: lifetime parameter `'f` only used once
- --> $DIR/one-use-in-inherent-method-argument.rs:11:6
- |
-LL | impl<'f> Foo<'f> {
- | ^^ -- ...is used only here
- | |
- | this lifetime...
- |
-note: the lint level is defined here
- --> $DIR/one-use-in-inherent-method-argument.rs:1:9
- |
-LL | #![deny(single_use_lifetimes)]
- | ^^^^^^^^^^^^^^^^^^^^
-help: elide the single-use lifetime
- |
-LL - impl<'f> Foo<'f> {
-LL + impl Foo<'_> {
- |
-
-error: lifetime parameter `'a` only used once
- --> $DIR/one-use-in-inherent-method-argument.rs:13:19
- |
-LL | fn inherent_a<'a>(&self, data: &'a u32) {
- | ^^ -- ...is used only here
- | |
- | this lifetime...
- |
-help: elide the single-use lifetime
- |
-LL - fn inherent_a<'a>(&self, data: &'a u32) {
-LL + fn inherent_a(&self, data: &u32) {
- |
-
-error: aborting due to 2 previous errors
-