]> git.lizzy.rs Git - rust.git/blob - src/tools/rustfmt/tests/target/issue-5042/multi-line_comment_without_trailing_comma.rs
Merge commit '2bb3996244cf1b89878da9e39841e9f6bf061602' into sync_cg_clif-2022-12-14
[rust.git] / src / tools / rustfmt / tests / target / issue-5042 / multi-line_comment_without_trailing_comma.rs
1 fn main() {
2     // 5042 deals with trailing commas, not the indentation issue of these comments
3     // When a future PR fixes the inentation issues these test can be updated
4     let _ = std::ops::Add::add(
5         10, 20, // ...
6            // ...
7     );
8
9     let _ = std::ops::Add::add(
10         10, 20, /* ... */
11            // ...
12     );
13
14     let _ = std::ops::Add::add(
15         10, 20, // ...
16            // ...
17     );
18
19     let _ = std::ops::Add::add(
20         10, 20, // ...
21            /* ...
22             */
23     );
24 }