]> git.proxmox.com Git - rustc.git/blame - src/test/ui/lint/must_not_suspend/ref.no_drop_tracking.stderr
New upstream version 1.65.0+dfsg1
[rustc.git] / src / test / ui / lint / must_not_suspend / ref.no_drop_tracking.stderr
CommitLineData
c295e0f8 1error: `Umm` held across a suspend point, but should not be
f2b60f7d 2 --> $DIR/ref.rs:21:26
c295e0f8
XL
3 |
4LL | let guard = &mut self.u;
5 | ^^^^^^
923072b8 6LL |
c295e0f8 7LL | other().await;
a2a8927a 8 | ------ the value is held across this suspend point
c295e0f8
XL
9 |
10note: the lint level is defined here
f2b60f7d 11 --> $DIR/ref.rs:6:9
c295e0f8
XL
12 |
13LL | #![deny(must_not_suspend)]
14 | ^^^^^^^^^^^^^^^^
15note: You gotta use Umm's, ya know?
f2b60f7d 16 --> $DIR/ref.rs:21:26
c295e0f8
XL
17 |
18LL | let guard = &mut self.u;
19 | ^^^^^^
20help: consider using a block (`{ ... }`) to shrink the value's scope, ending before the suspend point
f2b60f7d 21 --> $DIR/ref.rs:21:26
c295e0f8
XL
22 |
23LL | let guard = &mut self.u;
24 | ^^^^^^
25
26error: aborting due to previous error
27