]> git.lizzy.rs Git - rust.git/blob - tests/target/async_fn.rs
Merge pull request #3500 from rchaser53/issue-3499
[rust.git] / tests / target / async_fn.rs
1 // rustfmt-edition: 2018
2
3 async fn bar() -> Result<(), ()> {
4     Ok(())
5 }
6
7 pub async fn baz() -> Result<(), ()> {
8     Ok(())
9 }
10
11 unsafe async fn foo() {
12     async move { Ok(()) }
13 }
14
15 unsafe async fn rust() {
16     async move {
17         // comment
18         Ok(())
19     }
20 }