summaryrefslogtreecommitdiffstats
path: root/src/test/ui/generics/issue-65285-incorrect-explicit-lifetime-name-needed.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/generics/issue-65285-incorrect-explicit-lifetime-name-needed.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/generics/issue-65285-incorrect-explicit-lifetime-name-needed.stderr')
-rw-r--r--src/test/ui/generics/issue-65285-incorrect-explicit-lifetime-name-needed.stderr51
1 files changed, 0 insertions, 51 deletions
diff --git a/src/test/ui/generics/issue-65285-incorrect-explicit-lifetime-name-needed.stderr b/src/test/ui/generics/issue-65285-incorrect-explicit-lifetime-name-needed.stderr
deleted file mode 100644
index e45387aca..000000000
--- a/src/test/ui/generics/issue-65285-incorrect-explicit-lifetime-name-needed.stderr
+++ /dev/null
@@ -1,51 +0,0 @@
-error[E0637]: `&` without an explicit lifetime name cannot be used here
- --> $DIR/issue-65285-incorrect-explicit-lifetime-name-needed.rs:5:37
- |
-LL | fn should_error<T>() where T : Into<&u32> {}
- | ^ explicit lifetime name needed here
-
-error[E0106]: missing lifetime specifier
- --> $DIR/issue-65285-incorrect-explicit-lifetime-name-needed.rs:9:20
- |
-LL | fn foo<'b, L: X<&'b Nested<K>>>();
- | ^ expected named lifetime parameter
- |
-note: these named lifetimes are available to use
- --> $DIR/issue-65285-incorrect-explicit-lifetime-name-needed.rs:8:9
- |
-LL | trait X<'a, K: 'a> {
- | ^^
-LL | fn foo<'b, L: X<&'b Nested<K>>>();
- | ^^
-help: consider using one of the available lifetimes here
- |
-LL | fn foo<'b, L: X<'lifetime, &'b Nested<K>>>();
- | ++++++++++
-
-error[E0106]: missing lifetime specifier
- --> $DIR/issue-65285-incorrect-explicit-lifetime-name-needed.rs:14:16
- |
-LL | fn bar<'b, L: X<&'b Nested<i32>>>(){}
- | ^ expected named lifetime parameter
- |
-help: consider using the `'b` lifetime
- |
-LL | fn bar<'b, L: X<'b, &'b Nested<i32>>>(){}
- | +++
-
-error[E0477]: the type `&'b Nested<K>` does not fulfill the required lifetime
- --> $DIR/issue-65285-incorrect-explicit-lifetime-name-needed.rs:9:19
- |
-LL | fn foo<'b, L: X<&'b Nested<K>>>();
- | ^^^^^^^^^^^^^^^^
- |
-note: type must satisfy the static lifetime as required by this binding
- --> $DIR/issue-65285-incorrect-explicit-lifetime-name-needed.rs:8:16
- |
-LL | trait X<'a, K: 'a> {
- | ^^
-
-error: aborting due to 4 previous errors
-
-Some errors have detailed explanations: E0106, E0477, E0637.
-For more information about an error, try `rustc --explain E0106`.