rust/src/test/ui/nll/closure-requirements/propagate-despite-same-free-region.stderr

38 lines
1.5 KiB
Plaintext
Raw Normal View History

warning: not reporting region error due to nll
2017-12-10 15:12:28 -06:00
--> $DIR/propagate-despite-same-free-region.rs:54:21
|
2018-02-22 18:42:32 -06:00
LL | let p = x.get();
| ^^^^^^^
note: External requirements
2017-12-10 15:12:28 -06:00
--> $DIR/propagate-despite-same-free-region.rs:52:9
|
2018-02-22 18:42:32 -06:00
LL | / |_outlives1, _outlives2, x, y| {
LL | | // Only works if 'x: 'y:
LL | | let p = x.get();
LL | | demand_y(x, y, p)
LL | | },
| |_________^
|
= note: defining type: DefId(0/1:16 ~ propagate_despite_same_free_region[317d]::supply[0]::{{closure}}[0]) with closure substs [
i16,
for<'r, 's> extern "rust-call" fn((std::cell::Cell<&'_#1r &ReLateBound(DebruijnIndex(0), BrNamed(crate0:DefIndex(0:0), 'r)) u32>, std::cell::Cell<&ReLateBound(DebruijnIndex(0), BrNamed(crate0:DefIndex(0:0), 's)) &'_#2r u32>, std::cell::Cell<&ReLateBound(DebruijnIndex(0), BrNamed(crate0:DefIndex(0:0), 'r)) u32>, std::cell::Cell<&ReLateBound(DebruijnIndex(0), BrNamed(crate0:DefIndex(0:0), 's)) u32>))
]
= note: number of external vids: 3
= note: where '_#1r: '_#2r
note: No external requirements
2017-12-10 15:12:28 -06:00
--> $DIR/propagate-despite-same-free-region.rs:49:1
|
2018-02-22 18:42:32 -06:00
LL | / fn supply<'a>(cell_a: Cell<&'a u32>) {
LL | | establish_relationships(
LL | | cell_a,
LL | | |_outlives1, _outlives2, x, y| {
... |
2018-02-22 18:42:32 -06:00
LL | | );
LL | | }
| |_^
|
= note: defining type: DefId(0/0:6 ~ propagate_despite_same_free_region[317d]::supply[0]) with substs []