Add a test for #2123 and update tests
This commit is contained in:
parent
7a4daf0d41
commit
366621eb46
@ -58,7 +58,7 @@ enum X {
|
||||
}
|
||||
|
||||
pub enum EnumWithAttributes {
|
||||
// This is a pre comment
|
||||
//This is a pre comment
|
||||
// AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
TupleVar(usize, usize, usize), /* AAAA AAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAA
|
||||
* AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA */
|
||||
|
6
tests/target/issue-2123.rs
Normal file
6
tests/target/issue-2123.rs
Normal file
@ -0,0 +1,6 @@
|
||||
// rustfmt-wrap_comments: true
|
||||
|
||||
//hello
|
||||
//world
|
||||
|
||||
fn main() {}
|
@ -271,7 +271,7 @@ struct Foo {
|
||||
aaaaaaa: u32, /* multi
|
||||
* line
|
||||
* comment
|
||||
* */
|
||||
*/
|
||||
b: u32, // hi
|
||||
|
||||
do_not_push_this_comment1: u32, // comment1
|
||||
|
@ -176,7 +176,7 @@ union Foo {
|
||||
aaaaaaa: u32, /* multi
|
||||
* line
|
||||
* comment
|
||||
* */
|
||||
*/
|
||||
b: u32, // hi
|
||||
|
||||
do_not_push_this_comment1: u32, // comment1
|
||||
|
Loading…
x
Reference in New Issue
Block a user