1 error: this MutexGuard is held across an 'await' point. Consider using an async-aware Mutex type or ensuring the MutexGuard is dropped before calling await.
2 --> $DIR/await_holding_lock.rs:7:9
4 LL | let guard = x.lock().unwrap();
7 = note: `-D clippy::await-holding-lock` implied by `-D warnings`
8 note: these are all the await points this lock is held through
9 --> $DIR/await_holding_lock.rs:7:5
11 LL | / let guard = x.lock().unwrap();
16 error: this MutexGuard is held across an 'await' point. Consider using an async-aware Mutex type or ensuring the MutexGuard is dropped before calling await.
17 --> $DIR/await_holding_lock.rs:28:9
19 LL | let guard = x.lock().unwrap();
22 note: these are all the await points this lock is held through
23 --> $DIR/await_holding_lock.rs:28:5
25 LL | / let guard = x.lock().unwrap();
27 LL | | let second = baz().await;
30 LL | | first + second + third
34 error: this MutexGuard is held across an 'await' point. Consider using an async-aware Mutex type or ensuring the MutexGuard is dropped before calling await.
35 --> $DIR/await_holding_lock.rs:41:13
37 LL | let guard = x.lock().unwrap();
40 note: these are all the await points this lock is held through
41 --> $DIR/await_holding_lock.rs:41:9
43 LL | / let guard = x.lock().unwrap();
48 error: this MutexGuard is held across an 'await' point. Consider using an async-aware Mutex type or ensuring the MutexGuard is dropped before calling await.
49 --> $DIR/await_holding_lock.rs:53:13
51 LL | let guard = x.lock().unwrap();
54 note: these are all the await points this lock is held through
55 --> $DIR/await_holding_lock.rs:53:9
57 LL | / let guard = x.lock().unwrap();
62 error: aborting due to 4 previous errors