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

Co-authored-by: Michael Goulet <michael@errs.io>
This commit is contained in:
Bryan Garza 2022-10-27 15:47:30 -07:00
parent 9a05081d5f
commit 0b3b046436

View File

@ -26,7 +26,7 @@ fn main() {
let _ = x.bar();
// Calling from async block in non-async context
async {
let _ = x.foo();
let _ = x.bar();
let _: i32 = x.foo().await;
let _: i32 = x.bar().await;
};
}