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