]> git.lizzy.rs Git - rust.git/blob - tests/ui/lint/must_not_suspend/ref.drop_tracking.stderr
Auto merge of #106884 - clubby789:fieldless-enum-debug, r=michaelwoerister
[rust.git] / tests / ui / lint / must_not_suspend / ref.drop_tracking.stderr
1 error: reference to `Umm` held across a suspend point, but should not be
2   --> $DIR/ref.rs:21:13
3    |
4 LL |         let guard = &mut self.u;
5    |             ^^^^^
6 LL |
7 LL |         other().await;
8    |                ------ the value is held across this suspend point
9    |
10 note: You gotta use Umm's, ya know?
11   --> $DIR/ref.rs:21:13
12    |
13 LL |         let guard = &mut self.u;
14    |             ^^^^^
15 help: consider using a block (`{ ... }`) to shrink the value's scope, ending before the suspend point
16   --> $DIR/ref.rs:21:13
17    |
18 LL |         let guard = &mut self.u;
19    |             ^^^^^
20 note: the lint level is defined here
21   --> $DIR/ref.rs:6:9
22    |
23 LL | #![deny(must_not_suspend)]
24    |         ^^^^^^^^^^^^^^^^
25
26 error: aborting due to previous error
27