]> git.lizzy.rs Git - rust.git/blob - src/tools/rustfmt/tests/source/issue-4643.rs
Rollup merge of #107166 - petrochenkov:nooptable, r=oli-obk
[rust.git] / src / tools / rustfmt / tests / source / issue-4643.rs
1 // output doesn't get corrupted when using comments within generic type parameters of a trait
2
3 pub trait Something<
4     A,
5     // some comment
6     B,
7     C
8 > {
9     fn a(&self, x: A) -> i32;
10     fn b(&self, x: B) -> i32;
11     fn c(&self, x: C) -> i32;
12 }
13
14 pub trait SomethingElse<
15     A,
16     /* some comment */
17     B,
18     C
19 > {
20     fn a(&self, x: A) -> i32;
21     fn b(&self, x: B) -> i32;
22     fn c(&self, x: C) -> i32;
23 }