]> git.lizzy.rs Git - rust.git/blob - src/tools/rustfmt/tests/target/issue-5042/multi-line_comment_with_trailing_comma.rs
Merge commit '4bdfb0741dbcecd5279a2635c3280726db0604b5' into clippyup
[rust.git] / src / tools / rustfmt / tests / target / issue-5042 / multi-line_comment_with_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 }