Skip to content

Commit

Permalink
Update src/test/ui/async-await/in-trait/async-example.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Goulet <michael@errs.io>
  • Loading branch information
bryangarza and compiler-errors committed Oct 27, 2022
1 parent 9a05081 commit 0b3b046
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/ui/async-await/in-trait/async-example.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
}

0 comments on commit 0b3b046

Please sign in to comment.