rust/tests/target/async_fn.rs

21 lines
272 B
Rust
Raw Normal View History

2018-07-29 10:45:31 -05:00
// rustfmt-edition: Edition2018
async fn bar() -> Result<(), ()> {
Ok(())
}
pub async fn baz() -> Result<(), ()> {
Ok(())
}
unsafe async fn foo() {
async move { Ok(()) }
}
2018-07-29 19:20:11 -05:00
unsafe async fn rust() {
async move {
// comment
Ok(())
}
}