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
@ -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…
x
Reference in New Issue
Block a user