summaryrefslogtreecommitdiffstats
path: root/src/test/ui/lifetimes/lifetime-doesnt-live-long-enough.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/lifetimes/lifetime-doesnt-live-long-enough.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/lifetimes/lifetime-doesnt-live-long-enough.stderr')
-rw-r--r--src/test/ui/lifetimes/lifetime-doesnt-live-long-enough.stderr68
1 files changed, 0 insertions, 68 deletions
diff --git a/src/test/ui/lifetimes/lifetime-doesnt-live-long-enough.stderr b/src/test/ui/lifetimes/lifetime-doesnt-live-long-enough.stderr
deleted file mode 100644
index affb4e8d0..000000000
--- a/src/test/ui/lifetimes/lifetime-doesnt-live-long-enough.stderr
+++ /dev/null
@@ -1,68 +0,0 @@
-error[E0310]: the parameter type `T` may not live long enough
- --> $DIR/lifetime-doesnt-live-long-enough.rs:19:10
- |
-LL | foo: &'static T
- | ^^^^^^^^^^ ...so that the reference type `&'static T` does not outlive the data it points at
- |
-help: consider adding an explicit lifetime bound...
- |
-LL | struct Foo<T: 'static> {
- | +++++++++
-
-error[E0309]: the parameter type `K` may not live long enough
- --> $DIR/lifetime-doesnt-live-long-enough.rs:41:33
- |
-LL | fn generic_in_parent<'a, L: X<&'a Nested<K>>>() {
- | ^^^^^^^^^^^^^^^^ ...so that the reference type `&'a Nested<K>` does not outlive the data it points at
- |
-help: consider adding an explicit lifetime bound...
- |
-LL | impl<K: 'a> Nested<K> {
- | ++++
-
-error[E0309]: the parameter type `M` may not live long enough
- --> $DIR/lifetime-doesnt-live-long-enough.rs:44:36
- |
-LL | fn generic_in_child<'a, 'b, L: X<&'a Nested<M>>, M: 'b>() {
- | ^^^^^^^^^^^^^^^^ ...so that the reference type `&'a Nested<M>` does not outlive the data it points at
- |
-help: consider adding an explicit lifetime bound...
- |
-LL | fn generic_in_child<'a, 'b, L: X<&'a Nested<M>>, M: 'b + 'a>() {
- | ++++
-
-error[E0309]: the parameter type `K` may not live long enough
- --> $DIR/lifetime-doesnt-live-long-enough.rs:24:19
- |
-LL | fn foo<'a, L: X<&'a Nested<K>>>();
- | ^^^^^^^^^^^^^^^^ ...so that the reference type `&'a Nested<K>` does not outlive the data it points at
- |
-help: consider adding an explicit lifetime bound...
- |
-LL | trait X<K: 'a>: Sized {
- | ++++
-
-error[E0309]: the parameter type `Self` may not live long enough
- --> $DIR/lifetime-doesnt-live-long-enough.rs:28:19
- |
-LL | fn bar<'a, L: X<&'a Nested<Self>>>();
- | ^^^^^^^^^^^^^^^^^^^
- |
- = help: consider adding an explicit lifetime bound `Self: 'a`...
- = note: ...so that the reference type `&'a Nested<Self>` does not outlive the data it points at
-
-error[E0309]: the parameter type `L` may not live long enough
- --> $DIR/lifetime-doesnt-live-long-enough.rs:32:22
- |
-LL | fn baz<'a, L, M: X<&'a Nested<L>>>() {
- | ^^^^^^^^^^^^^^^^ ...so that the reference type `&'a Nested<L>` does not outlive the data it points at
- |
-help: consider adding an explicit lifetime bound...
- |
-LL | fn baz<'a, L: 'a, M: X<&'a Nested<L>>>() {
- | ++++
-
-error: aborting due to 6 previous errors
-
-Some errors have detailed explanations: E0309, E0310.
-For more information about an error, try `rustc --explain E0309`.