mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-02 19:53:46 +00:00
29 lines
336 B
Rust
29 lines
336 B
Rust
// rustfmt-edition: 2018
|
|
|
|
async fn bar() -> Result<(), ()> {
|
|
Ok(())
|
|
}
|
|
|
|
pub async fn baz() -> Result<(), ()> {
|
|
Ok(())
|
|
}
|
|
|
|
async unsafe fn foo() {
|
|
async move {
|
|
Ok(())
|
|
}
|
|
}
|
|
|
|
async unsafe fn rust() {
|
|
async move { // comment
|
|
Ok(())
|
|
}
|
|
}
|
|
|
|
async fn await_try() {
|
|
something
|
|
.await
|
|
?
|
|
;
|
|
}
|