@@ -2,7 +2,7 @@ error[E0521]: borrowed data escapes outside of closure
2
2
--> $DIR/expect-region-supply-region.rs:18:9
3
3
|
4
4
LL | let mut f: Option<&u32> = None;
5
- | ----- `f` is declared here, outside of the closure body
5
+ | ----- `f` declared here, outside of the closure body
6
6
LL | closure_expecting_bound(|x| {
7
7
| - `x` is a reference that is only valid in the closure body
8
8
LL | f = Some(x);
@@ -12,7 +12,7 @@ error[E0521]: borrowed data escapes outside of closure
12
12
--> $DIR/expect-region-supply-region.rs:28:9
13
13
|
14
14
LL | let mut f: Option<&u32> = None;
15
- | ----- `f` is declared here, outside of the closure body
15
+ | ----- `f` declared here, outside of the closure body
16
16
LL | closure_expecting_bound(|x: &u32| {
17
17
| - `x` is a reference that is only valid in the closure body
18
18
LL | f = Some(x);
@@ -33,7 +33,7 @@ error[E0521]: borrowed data escapes outside of closure
33
33
--> $DIR/expect-region-supply-region.rs:42:9
34
34
|
35
35
LL | let mut f: Option<&u32> = None;
36
- | ----- `f` is declared here, outside of the closure body
36
+ | ----- `f` declared here, outside of the closure body
37
37
...
38
38
LL | closure_expecting_bound(|x: &'x u32| {
39
39
| - `x` is a reference that is only valid in the closure body
0 commit comments