2018-08-31 00:04:23 -07:00
|
|
|
// rustfmt-edition: 2018
|
2018-07-29 08:45:31 -07:00
|
|
|
|
|
|
|
async fn bar() -> Result<(), ()> {
|
|
|
|
Ok(())
|
|
|
|
}
|
|
|
|
|
|
|
|
pub async fn baz() -> Result<(), ()> {
|
|
|
|
Ok(())
|
|
|
|
}
|
|
|
|
|
2019-06-03 23:57:02 +09:00
|
|
|
async unsafe fn foo() {
|
2018-07-29 08:45:31 -07:00
|
|
|
async move {
|
|
|
|
Ok(())
|
|
|
|
}
|
|
|
|
}
|
2018-07-29 17:20:11 -07:00
|
|
|
|
2019-06-03 23:57:02 +09:00
|
|
|
async unsafe fn rust() {
|
2018-07-29 17:20:11 -07:00
|
|
|
async move { // comment
|
|
|
|
Ok(())
|
|
|
|
}
|
|
|
|
}
|
2019-07-06 14:17:53 +09:00
|
|
|
|
2019-08-02 16:54:39 +02:00
|
|
|
async fn await_try() {
|
|
|
|
something
|
|
|
|
.await
|
|
|
|
?
|
|
|
|
;
|
2019-07-06 14:17:53 +09:00
|
|
|
}
|