rust/tests/source/async_fn.rs

29 lines
336 B
Rust
Raw Normal View History

// rustfmt-edition: 2018
2018-07-29 17:45:31 +02:00
async fn bar() -> Result<(), ()> {
Ok(())
}
pub async fn baz() -> Result<(), ()> {
Ok(())
}
async unsafe fn foo() {
2018-07-29 17:45:31 +02:00
async move {
Ok(())
}
}
2018-07-30 02:20:11 +02:00
async unsafe fn rust() {
2018-07-30 02:20:11 +02:00
async move { // comment
Ok(())
}
}
async fn await_try() {
something
.await
?
;
}