fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: implementer of `Wow` held across a suspend point, but should not be 2 --> $DIR/trait.rs:21:9 3 | 4LL | let _guard1 = r#impl(); 5 | ^^^^^^^ 6... 7LL | other().await; 8 | ----- the value is held across this suspend point 9 | 10help: consider using a block (`{ ... }`) to shrink the value's scope, ending before the suspend point 11 --> $DIR/trait.rs:21:9 12 | 13LL | let _guard1 = r#impl(); 14 | ^^^^^^^ 15note: the lint level is defined here 16 --> $DIR/trait.rs:3:9 17 | 18LL | #![deny(must_not_suspend)] 19 | ^^^^^^^^^^^^^^^^ 20 21error: boxed `Wow` trait object held across a suspend point, but should not be 22 --> $DIR/trait.rs:22:9 23 | 24LL | let _guard2 = r#dyn(); 25 | ^^^^^^^ 26LL | 27LL | other().await; 28 | ----- the value is held across this suspend point 29 | 30help: consider using a block (`{ ... }`) to shrink the value's scope, ending before the suspend point 31 --> $DIR/trait.rs:22:9 32 | 33LL | let _guard2 = r#dyn(); 34 | ^^^^^^^ 35 36error: aborting due to 2 previous errors 37