]> git.lizzy.rs Git - rust.git/blob - tests/source/async_fn.rs
do not format a code block in documentation if it is annotated with ignore or text...
[rust.git] / tests / source / 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 {
13         Ok(())
14     }
15 }
16
17 unsafe async fn rust() {
18     async move { // comment
19         Ok(())
20     }
21 }