summaryrefslogtreecommitdiffstats
path: root/src/test/ui/nll/ty-outlives/projection-two-region-trait-bound-closure.stderr
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:19:03 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:19:03 +0000
commit64d98f8ee037282c35007b64c2649055c56af1db (patch)
tree5492bcf97fce41ee1c0b1cc2add283f3e66cdab0 /src/test/ui/nll/ty-outlives/projection-two-region-trait-bound-closure.stderr
parentAdding debian version 1.67.1+dfsg1-1. (diff)
downloadrustc-64d98f8ee037282c35007b64c2649055c56af1db.tar.xz
rustc-64d98f8ee037282c35007b64c2649055c56af1db.zip
Merging upstream version 1.68.2+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/test/ui/nll/ty-outlives/projection-two-region-trait-bound-closure.stderr')
-rw-r--r--src/test/ui/nll/ty-outlives/projection-two-region-trait-bound-closure.stderr236
1 files changed, 0 insertions, 236 deletions
diff --git a/src/test/ui/nll/ty-outlives/projection-two-region-trait-bound-closure.stderr b/src/test/ui/nll/ty-outlives/projection-two-region-trait-bound-closure.stderr
deleted file mode 100644
index 90f049142..000000000
--- a/src/test/ui/nll/ty-outlives/projection-two-region-trait-bound-closure.stderr
+++ /dev/null
@@ -1,236 +0,0 @@
-note: external requirements
- --> $DIR/projection-two-region-trait-bound-closure.rs:38:29
- |
-LL | with_signature(cell, t, |cell, t| require(cell, t));
- | ^^^^^^^^^
- |
- = note: defining type: no_relationships_late::<'_#1r, '_#2r, T>::{closure#0} with closure substs [
- i32,
- extern "rust-call" fn((std::cell::Cell<&'_#3r ()>, T)),
- (),
- ]
- = note: late-bound region is '_#4r
- = note: number of external vids: 5
- = note: where <T as Anything<ReEarlyBound(0, 'b), ReEarlyBound(1, 'c)>>::AssocType: '_#3r
-
-note: no external requirements
- --> $DIR/projection-two-region-trait-bound-closure.rs:34:1
- |
-LL | / fn no_relationships_late<'a, 'b, 'c, T>(cell: Cell<&'a ()>, t: T)
-LL | | where
-LL | | T: Anything<'b, 'c>,
- | |________________________^
- |
- = note: defining type: no_relationships_late::<'_#1r, '_#2r, T>
-
-error[E0309]: the associated type `<T as Anything<ReEarlyBound(0, 'b), ReEarlyBound(1, 'c)>>::AssocType` may not live long enough
- --> $DIR/projection-two-region-trait-bound-closure.rs:38:39
- |
-LL | with_signature(cell, t, |cell, t| require(cell, t));
- | ^^^^^^^^^^^^^^^^
- |
- = help: consider adding an explicit lifetime bound `<T as Anything<ReEarlyBound(0, 'b), ReEarlyBound(1, 'c)>>::AssocType: 'a`...
- = note: ...so that the type `<T as Anything<ReEarlyBound(0, 'b), ReEarlyBound(1, 'c)>>::AssocType` will meet its required lifetime bounds
-
-note: external requirements
- --> $DIR/projection-two-region-trait-bound-closure.rs:48:29
- |
-LL | with_signature(cell, t, |cell, t| require(cell, t));
- | ^^^^^^^^^
- |
- = note: defining type: no_relationships_early::<'_#1r, '_#2r, '_#3r, T>::{closure#0} with closure substs [
- i32,
- extern "rust-call" fn((std::cell::Cell<&'_#4r ()>, T)),
- (),
- ]
- = note: number of external vids: 5
- = note: where <T as Anything<ReEarlyBound(1, 'b), ReEarlyBound(2, 'c)>>::AssocType: '_#4r
-
-note: no external requirements
- --> $DIR/projection-two-region-trait-bound-closure.rs:43:1
- |
-LL | / fn no_relationships_early<'a, 'b, 'c, T>(cell: Cell<&'a ()>, t: T)
-LL | | where
-LL | | T: Anything<'b, 'c>,
-LL | | 'a: 'a,
- | |___________^
- |
- = note: defining type: no_relationships_early::<'_#1r, '_#2r, '_#3r, T>
-
-error[E0309]: the associated type `<T as Anything<ReEarlyBound(1, 'b), ReEarlyBound(2, 'c)>>::AssocType` may not live long enough
- --> $DIR/projection-two-region-trait-bound-closure.rs:48:39
- |
-LL | with_signature(cell, t, |cell, t| require(cell, t));
- | ^^^^^^^^^^^^^^^^
- |
- = help: consider adding an explicit lifetime bound `<T as Anything<ReEarlyBound(1, 'b), ReEarlyBound(2, 'c)>>::AssocType: 'a`...
- = note: ...so that the type `<T as Anything<ReEarlyBound(1, 'b), ReEarlyBound(2, 'c)>>::AssocType` will meet its required lifetime bounds
-
-note: external requirements
- --> $DIR/projection-two-region-trait-bound-closure.rs:61:29
- |
-LL | with_signature(cell, t, |cell, t| require(cell, t));
- | ^^^^^^^^^
- |
- = note: defining type: projection_outlives::<'_#1r, '_#2r, '_#3r, T>::{closure#0} with closure substs [
- i32,
- extern "rust-call" fn((std::cell::Cell<&'_#4r ()>, T)),
- (),
- ]
- = note: number of external vids: 5
- = note: where <T as Anything<ReEarlyBound(1, 'b), ReEarlyBound(2, 'c)>>::AssocType: '_#4r
-
-note: no external requirements
- --> $DIR/projection-two-region-trait-bound-closure.rs:53:1
- |
-LL | / fn projection_outlives<'a, 'b, 'c, T>(cell: Cell<&'a ()>, t: T)
-LL | | where
-LL | | T: Anything<'b, 'c>,
-LL | | T::AssocType: 'a,
- | |_____________________^
- |
- = note: defining type: projection_outlives::<'_#1r, '_#2r, '_#3r, T>
-
-note: external requirements
- --> $DIR/projection-two-region-trait-bound-closure.rs:70:29
- |
-LL | with_signature(cell, t, |cell, t| require(cell, t));
- | ^^^^^^^^^
- |
- = note: defining type: elements_outlive1::<'_#1r, '_#2r, '_#3r, T>::{closure#0} with closure substs [
- i32,
- extern "rust-call" fn((std::cell::Cell<&'_#4r ()>, T)),
- (),
- ]
- = note: number of external vids: 5
- = note: where <T as Anything<ReEarlyBound(1, 'b), ReEarlyBound(2, 'c)>>::AssocType: '_#4r
-
-note: no external requirements
- --> $DIR/projection-two-region-trait-bound-closure.rs:65:1
- |
-LL | / fn elements_outlive1<'a, 'b, 'c, T>(cell: Cell<&'a ()>, t: T)
-LL | | where
-LL | | T: Anything<'b, 'c>,
-LL | | 'b: 'a,
- | |___________^
- |
- = note: defining type: elements_outlive1::<'_#1r, '_#2r, '_#3r, T>
-
-note: external requirements
- --> $DIR/projection-two-region-trait-bound-closure.rs:79:29
- |
-LL | with_signature(cell, t, |cell, t| require(cell, t));
- | ^^^^^^^^^
- |
- = note: defining type: elements_outlive2::<'_#1r, '_#2r, '_#3r, T>::{closure#0} with closure substs [
- i32,
- extern "rust-call" fn((std::cell::Cell<&'_#4r ()>, T)),
- (),
- ]
- = note: number of external vids: 5
- = note: where <T as Anything<ReEarlyBound(1, 'b), ReEarlyBound(2, 'c)>>::AssocType: '_#4r
-
-note: no external requirements
- --> $DIR/projection-two-region-trait-bound-closure.rs:74:1
- |
-LL | / fn elements_outlive2<'a, 'b, 'c, T>(cell: Cell<&'a ()>, t: T)
-LL | | where
-LL | | T: Anything<'b, 'c>,
-LL | | 'c: 'a,
- | |___________^
- |
- = note: defining type: elements_outlive2::<'_#1r, '_#2r, '_#3r, T>
-
-note: external requirements
- --> $DIR/projection-two-region-trait-bound-closure.rs:87:29
- |
-LL | with_signature(cell, t, |cell, t| require(cell, t));
- | ^^^^^^^^^
- |
- = note: defining type: two_regions::<'_#1r, T>::{closure#0} with closure substs [
- i32,
- extern "rust-call" fn((std::cell::Cell<&'_#2r ()>, T)),
- (),
- ]
- = note: late-bound region is '_#3r
- = note: number of external vids: 4
- = note: where <T as Anything<ReEarlyBound(0, 'b), ReEarlyBound(0, 'b)>>::AssocType: '_#2r
-
-note: no external requirements
- --> $DIR/projection-two-region-trait-bound-closure.rs:83:1
- |
-LL | / fn two_regions<'a, 'b, T>(cell: Cell<&'a ()>, t: T)
-LL | | where
-LL | | T: Anything<'b, 'b>,
- | |________________________^
- |
- = note: defining type: two_regions::<'_#1r, T>
-
-error: lifetime may not live long enough
- --> $DIR/projection-two-region-trait-bound-closure.rs:87:5
- |
-LL | fn two_regions<'a, 'b, T>(cell: Cell<&'a ()>, t: T)
- | -- -- lifetime `'b` defined here
- | |
- | lifetime `'a` defined here
-...
-LL | with_signature(cell, t, |cell, t| require(cell, t));
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ argument requires that `'b` must outlive `'a`
- |
- = help: consider adding the following bound: `'b: 'a`
- = note: requirement occurs because of the type `Cell<&'_#8r ()>`, which makes the generic argument `&'_#8r ()` invariant
- = note: the struct `Cell<T>` is invariant over the parameter `T`
- = help: see <https://doc.rust-lang.org/nomicon/subtyping.html> for more information about variance
-
-note: external requirements
- --> $DIR/projection-two-region-trait-bound-closure.rs:97:29
- |
-LL | with_signature(cell, t, |cell, t| require(cell, t));
- | ^^^^^^^^^
- |
- = note: defining type: two_regions_outlive::<'_#1r, '_#2r, T>::{closure#0} with closure substs [
- i32,
- extern "rust-call" fn((std::cell::Cell<&'_#3r ()>, T)),
- (),
- ]
- = note: number of external vids: 4
- = note: where <T as Anything<ReEarlyBound(1, 'b), ReEarlyBound(1, 'b)>>::AssocType: '_#3r
-
-note: no external requirements
- --> $DIR/projection-two-region-trait-bound-closure.rs:92:1
- |
-LL | / fn two_regions_outlive<'a, 'b, T>(cell: Cell<&'a ()>, t: T)
-LL | | where
-LL | | T: Anything<'b, 'b>,
-LL | | 'b: 'a,
- | |___________^
- |
- = note: defining type: two_regions_outlive::<'_#1r, '_#2r, T>
-
-note: external requirements
- --> $DIR/projection-two-region-trait-bound-closure.rs:109:29
- |
-LL | with_signature(cell, t, |cell, t| require(cell, t));
- | ^^^^^^^^^
- |
- = note: defining type: one_region::<'_#1r, T>::{closure#0} with closure substs [
- i32,
- extern "rust-call" fn((std::cell::Cell<&'_#2r ()>, T)),
- (),
- ]
- = note: number of external vids: 3
- = note: where <T as Anything<ReEarlyBound(0, 'a), ReEarlyBound(0, 'a)>>::AssocType: '_#2r
-
-note: no external requirements
- --> $DIR/projection-two-region-trait-bound-closure.rs:101:1
- |
-LL | / fn one_region<'a, T>(cell: Cell<&'a ()>, t: T)
-LL | | where
-LL | | T: Anything<'a, 'a>,
- | |________________________^
- |
- = note: defining type: one_region::<'_#1r, T>
-
-error: aborting due to 3 previous errors
-
-For more information about this error, try `rustc --explain E0309`.