bless output of ui test closures/closure-expected-type/expect-region-supply-region.rs
trivial diagnostics grammar change
This commit is contained in:
parent
c73d5db21f
commit
fcd12bd2f4
1 changed files with 3 additions and 3 deletions
|
@ -2,7 +2,7 @@ error[E0521]: borrowed data escapes outside of closure
|
|||
--> $DIR/expect-region-supply-region.rs:18:9
|
||||
|
|
||||
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` is a reference that is only valid in the closure body
|
||||
LL | f = Some(x);
|
||||
|
@ -12,7 +12,7 @@ error[E0521]: borrowed data escapes outside of closure
|
|||
--> $DIR/expect-region-supply-region.rs:28:9
|
||||
|
|
||||
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| {
|
||||
| - `x` is a reference that is only valid in the closure body
|
||||
LL | f = Some(x);
|
||||
|
@ -33,7 +33,7 @@ error[E0521]: borrowed data escapes outside of closure
|
|||
--> $DIR/expect-region-supply-region.rs:42:9
|
||||
|
|
||||
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| {
|
||||
| - `x` is a reference that is only valid in the closure body
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue