diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2018-02-23 03:42:32 +0300 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2018-02-26 20:24:02 +0300 |
| commit | fa2d9fc4b9e578d95fbf65613d1bf732fbdfb0d4 (patch) | |
| tree | 1eb1a49b4750e2704d3d724fb4a12ea4e2237eff /src/test/ui/span/send-is-not-static-std-sync-2.stderr | |
| parent | cdbd8c2f2aa69c4b8fe6f004449440e87c4ab87e (diff) | |
| download | rust-fa2d9fc4b9e578d95fbf65613d1bf732fbdfb0d4.tar.gz rust-fa2d9fc4b9e578d95fbf65613d1bf732fbdfb0d4.zip | |
Update UI tests
Diffstat (limited to 'src/test/ui/span/send-is-not-static-std-sync-2.stderr')
| -rw-r--r-- | src/test/ui/span/send-is-not-static-std-sync-2.stderr | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/test/ui/span/send-is-not-static-std-sync-2.stderr b/src/test/ui/span/send-is-not-static-std-sync-2.stderr index 2d7e4667a40..5c3e38db2a3 100644 --- a/src/test/ui/span/send-is-not-static-std-sync-2.stderr +++ b/src/test/ui/span/send-is-not-static-std-sync-2.stderr @@ -1,35 +1,35 @@ error[E0597]: `x` does not live long enough --> $DIR/send-is-not-static-std-sync-2.rs:21:21 | -21 | Mutex::new(&x) +LL | Mutex::new(&x) | ^ borrowed value does not live long enough -22 | }; +LL | }; | - `x` dropped here while still borrowed ... -26 | } +LL | } | - borrowed value needs to live until here error[E0597]: `x` does not live long enough --> $DIR/send-is-not-static-std-sync-2.rs:31:22 | -31 | RwLock::new(&x) +LL | RwLock::new(&x) | ^ borrowed value does not live long enough -32 | }; +LL | }; | - `x` dropped here while still borrowed ... -35 | } +LL | } | - borrowed value needs to live until here error[E0597]: `x` does not live long enough --> $DIR/send-is-not-static-std-sync-2.rs:41:26 | -41 | let _ = tx.send(&x); +LL | let _ = tx.send(&x); | ^ borrowed value does not live long enough 42 | (tx, rx) -43 | }; +LL | }; | - `x` dropped here while still borrowed ... -47 | } +LL | } | - borrowed value needs to live until here error: aborting due to 3 previous errors |
