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