1
Fork 0

bless output of ui test closures/closure-expected-type/expect-region-supply-region.rs

trivial diagnostics grammar change
This commit is contained in:
Remy Rakic 2020-03-30 01:24:52 +02:00
parent c73d5db21f
commit fcd12bd2f4

View file

@ -2,7 +2,7 @@ error[E0521]: borrowed data escapes outside of closure
--> $DIR/expect-region-supply-region.rs:18:9 --> $DIR/expect-region-supply-region.rs:18:9
| |
LL | let mut f: Option<&u32> = None; LL | let mut f: Option<&u32> = None;
| ----- `f` is declared here, outside of the closure body | ----- `f` declared here, outside of the closure body
LL | closure_expecting_bound(|x| { LL | closure_expecting_bound(|x| {
| - `x` is a reference that is only valid in the closure body | - `x` is a reference that is only valid in the closure body
LL | f = Some(x); LL | f = Some(x);
@ -12,7 +12,7 @@ error[E0521]: borrowed data escapes outside of closure
--> $DIR/expect-region-supply-region.rs:28:9 --> $DIR/expect-region-supply-region.rs:28:9
| |
LL | let mut f: Option<&u32> = None; LL | let mut f: Option<&u32> = None;
| ----- `f` is declared here, outside of the closure body | ----- `f` declared here, outside of the closure body
LL | closure_expecting_bound(|x: &u32| { LL | closure_expecting_bound(|x: &u32| {
| - `x` is a reference that is only valid in the closure body | - `x` is a reference that is only valid in the closure body
LL | f = Some(x); LL | f = Some(x);
@ -33,7 +33,7 @@ error[E0521]: borrowed data escapes outside of closure
--> $DIR/expect-region-supply-region.rs:42:9 --> $DIR/expect-region-supply-region.rs:42:9
| |
LL | let mut f: Option<&u32> = None; LL | let mut f: Option<&u32> = None;
| ----- `f` is declared here, outside of the closure body | ----- `f` declared here, outside of the closure body
... ...
LL | closure_expecting_bound(|x: &'x u32| { LL | closure_expecting_bound(|x: &'x u32| {
| - `x` is a reference that is only valid in the closure body | - `x` is a reference that is only valid in the closure body