summaryrefslogtreecommitdiffstats
path: root/tests/ui/nll/closure-requirements/propagate-despite-same-free-region.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/nll/closure-requirements/propagate-despite-same-free-region.stderr')
-rw-r--r--tests/ui/nll/closure-requirements/propagate-despite-same-free-region.stderr23
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/ui/nll/closure-requirements/propagate-despite-same-free-region.stderr b/tests/ui/nll/closure-requirements/propagate-despite-same-free-region.stderr
new file mode 100644
index 000000000..d716d3de2
--- /dev/null
+++ b/tests/ui/nll/closure-requirements/propagate-despite-same-free-region.stderr
@@ -0,0 +1,23 @@
+note: external requirements
+ --> $DIR/propagate-despite-same-free-region.rs:42:9
+ |
+LL | |_outlives1, _outlives2, x, y| {
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+ |
+ = note: defining type: supply::{closure#0} with closure substs [
+ i16,
+ for<Region(BrAnon(0, None)), Region(BrAnon(1, None))> extern "rust-call" fn((std::cell::Cell<&'_#1r &ReLateBound(DebruijnIndex(0), BoundRegion { var: 0, kind: BrAnon(0, None) }) u32>, std::cell::Cell<&ReLateBound(DebruijnIndex(0), BoundRegion { var: 1, kind: BrAnon(1, None) }) &'_#2r u32>, std::cell::Cell<&ReLateBound(DebruijnIndex(0), BoundRegion { var: 0, kind: BrAnon(0, None) }) u32>, std::cell::Cell<&ReLateBound(DebruijnIndex(0), BoundRegion { var: 1, kind: BrAnon(1, None) }) u32>)),
+ (),
+ ]
+ = note: late-bound region is '_#3r
+ = note: number of external vids: 4
+ = note: where '_#1r: '_#2r
+
+note: no external requirements
+ --> $DIR/propagate-despite-same-free-region.rs:39:1
+ |
+LL | fn supply<'a>(cell_a: Cell<&'a u32>) {
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+ |
+ = note: defining type: supply
+