Update src/test/ui/async-await/in-trait/async-example.rs
Co-authored-by: Michael Goulet <michael@errs.io>
This commit is contained in:
parent
9a05081d5f
commit
0b3b046436
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue