From 218caa410aa38c29984be31a5229b9fa717560ee Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 14:19:13 +0200 Subject: Merging upstream version 1.68.2+dfsg1. Signed-off-by: Daniel Baumann --- ...on-one-region-trait-bound-static-closure.stderr | 114 +++++++++++++++++++++ 1 file changed, 114 insertions(+) create mode 100644 tests/ui/nll/ty-outlives/projection-one-region-trait-bound-static-closure.stderr (limited to 'tests/ui/nll/ty-outlives/projection-one-region-trait-bound-static-closure.stderr') diff --git a/tests/ui/nll/ty-outlives/projection-one-region-trait-bound-static-closure.stderr b/tests/ui/nll/ty-outlives/projection-one-region-trait-bound-static-closure.stderr new file mode 100644 index 000000000..b27186b05 --- /dev/null +++ b/tests/ui/nll/ty-outlives/projection-one-region-trait-bound-static-closure.stderr @@ -0,0 +1,114 @@ +note: no external requirements + --> $DIR/projection-one-region-trait-bound-static-closure.rs:36:29 + | +LL | with_signature(cell, t, |cell, t| require(cell, t)); + | ^^^^^^^^^ + | + = note: defining type: no_relationships_late::<'_#1r, T>::{closure#0} with closure substs [ + i32, + extern "rust-call" fn((std::cell::Cell<&'_#2r ()>, T)), + (), + ] + = note: late-bound region is '_#3r + +note: no external requirements + --> $DIR/projection-one-region-trait-bound-static-closure.rs:32:1 + | +LL | / fn no_relationships_late<'a, 'b, T>(cell: Cell<&'a ()>, t: T) +LL | | where +LL | | T: Anything<'b>, + | |____________________^ + | + = note: defining type: no_relationships_late::<'_#1r, T> + +note: no external requirements + --> $DIR/projection-one-region-trait-bound-static-closure.rs:45:29 + | +LL | with_signature(cell, t, |cell, t| require(cell, t)); + | ^^^^^^^^^ + | + = note: defining type: no_relationships_early::<'_#1r, '_#2r, T>::{closure#0} with closure substs [ + i32, + extern "rust-call" fn((std::cell::Cell<&'_#3r ()>, T)), + (), + ] + +note: no external requirements + --> $DIR/projection-one-region-trait-bound-static-closure.rs:40:1 + | +LL | / fn no_relationships_early<'a, 'b, T>(cell: Cell<&'a ()>, t: T) +LL | | where +LL | | T: Anything<'b>, +LL | | 'a: 'a, + | |___________^ + | + = note: defining type: no_relationships_early::<'_#1r, '_#2r, T> + +note: no external requirements + --> $DIR/projection-one-region-trait-bound-static-closure.rs:64:29 + | +LL | with_signature(cell, t, |cell, t| require(cell, t)); + | ^^^^^^^^^ + | + = note: defining type: projection_outlives::<'_#1r, '_#2r, T>::{closure#0} with closure substs [ + i32, + extern "rust-call" fn((std::cell::Cell<&'_#3r ()>, T)), + (), + ] + +note: no external requirements + --> $DIR/projection-one-region-trait-bound-static-closure.rs:49:1 + | +LL | / fn projection_outlives<'a, 'b, T>(cell: Cell<&'a ()>, t: T) +LL | | where +LL | | T: Anything<'b>, +LL | | T::AssocType: 'a, + | |_____________________^ + | + = note: defining type: projection_outlives::<'_#1r, '_#2r, T> + +note: no external requirements + --> $DIR/projection-one-region-trait-bound-static-closure.rs:73:29 + | +LL | with_signature(cell, t, |cell, t| require(cell, t)); + | ^^^^^^^^^ + | + = note: defining type: elements_outlive::<'_#1r, '_#2r, T>::{closure#0} with closure substs [ + i32, + extern "rust-call" fn((std::cell::Cell<&'_#3r ()>, T)), + (), + ] + +note: no external requirements + --> $DIR/projection-one-region-trait-bound-static-closure.rs:68:1 + | +LL | / fn elements_outlive<'a, 'b, T>(cell: Cell<&'a ()>, t: T) +LL | | where +LL | | T: Anything<'b>, +LL | | 'b: 'a, + | |___________^ + | + = note: defining type: elements_outlive::<'_#1r, '_#2r, T> + +note: no external requirements + --> $DIR/projection-one-region-trait-bound-static-closure.rs:85: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: no external requirements + --> $DIR/projection-one-region-trait-bound-static-closure.rs:77:1 + | +LL | / fn one_region<'a, T>(cell: Cell<&'a ()>, t: T) +LL | | where +LL | | T: Anything<'a>, + | |____________________^ + | + = note: defining type: one_region::<'_#1r, T> + -- cgit v1.2.3