mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-04 04:39:16 +00:00
22 lines
276 B
Rust
22 lines
276 B
Rust
// rustfmt-edition: Edition2018
|
|
|
|
async fn bar() -> Result<(), ()> {
|
|
Ok(())
|
|
}
|
|
|
|
pub async fn baz() -> Result<(), ()> {
|
|
Ok(())
|
|
}
|
|
|
|
unsafe async fn foo() {
|
|
async move {
|
|
Ok(())
|
|
}
|
|
}
|
|
|
|
unsafe async fn rust() {
|
|
async move { // comment
|
|
Ok(())
|
|
}
|
|
}
|