mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-23 20:34:06 +00:00
21 lines
265 B
Rust
21 lines
265 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(())
|
|
}
|
|
}
|