@@ -2,7 +2,7 @@ error[E0521]: borrowed data escapes outside of closure
22 --> $DIR/expect-region-supply-region.rs:18:9
33 |
44LL | 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
66LL | closure_expecting_bound(|x| {
77 | - `x` is a reference that is only valid in the closure body
88LL | f = Some(x);
@@ -12,7 +12,7 @@ error[E0521]: borrowed data escapes outside of closure
1212 --> $DIR/expect-region-supply-region.rs:28:9
1313 |
1414LL | 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
1616LL | closure_expecting_bound(|x: &u32| {
1717 | - `x` is a reference that is only valid in the closure body
1818LL | f = Some(x);
@@ -33,7 +33,7 @@ error[E0521]: borrowed data escapes outside of closure
3333 --> $DIR/expect-region-supply-region.rs:42:9
3434 |
3535LL | 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
3737...
3838LL | closure_expecting_bound(|x: &'x u32| {
3939 | - `x` is a reference that is only valid in the closure body
0 commit comments