diff options
| author | David Wood <david@davidtw.co> | 2019-09-25 13:58:41 +0100 |
|---|---|---|
| committer | David Wood <david@davidtw.co> | 2019-09-30 23:41:20 +0100 |
| commit | 04fa9b1b3f947fa66bb3e92702e134c72af9486f (patch) | |
| tree | 36337f318c51ae0809a55bb34d122ffed380a45a /src/libsyntax/parse/parser | |
| parent | d046ffddc4bd50e04ffc3ff9f766e2ac71f74d50 (diff) | |
| download | rust-04fa9b1b3f947fa66bb3e92702e134c72af9486f.tar.gz rust-04fa9b1b3f947fa66bb3e92702e134c72af9486f.zip | |
async/await: improve obligation errors
This commit improves obligation errors for async/await:
```
note: future does not implement `std::marker::Send` because this value is used across an
await
--> $DIR/issue-64130-non-send-future-diags.rs:15:5
|
LL | let g = x.lock().unwrap();
| - has type `std::sync::MutexGuard<'_, u32>`
LL | baz().await;
| ^^^^^^^^^^^ await occurs here, with `g` maybe used later
LL | }
| - `g` is later dropped here
```
Signed-off-by: David Wood <david@davidtw.co>
Diffstat (limited to 'src/libsyntax/parse/parser')
0 files changed, 0 insertions, 0 deletions
