Skip to content

Commit 0b3b046

Browse files
Update src/test/ui/async-await/in-trait/async-example.rs
Co-authored-by: Michael Goulet <[email protected]>
1 parent 9a05081 commit 0b3b046

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/ui/async-await/in-trait/async-example.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ fn main() {
2626
let _ = x.bar();
2727
// Calling from async block in non-async context
2828
async {
29-
let _ = x.foo();
30-
let _ = x.bar();
29+
let _: i32 = x.foo().await;
30+
let _: i32 = x.bar().await;
3131
};
3232
}

0 commit comments

Comments
 (0)