]> git.lizzy.rs Git - rust.git/commitdiff
bless output of ui test closures/closure-expected-type/expect-region-supply-region.rs
authorRemy Rakic <remy.rakic@gmail.com>
Sun, 29 Mar 2020 23:24:52 +0000 (01:24 +0200)
committerRemy Rakic <remy.rakic@gmail.com>
Sun, 29 Mar 2020 23:24:52 +0000 (01:24 +0200)
trivial diagnostics grammar change

src/test/ui/closures/closure-expected-type/expect-region-supply-region.polonius.stderr

index 2a7461fb469b271181f736bfb8d1fc55966143cf..df60416709f13f8fdc24fedaf5809206474b38aa 100644 (file)
@@ -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