Add additional test cases for issue 4984
This commit is contained in:
parent
40f4993c67
commit
365a2f8f6e
3 changed files with 24 additions and 0 deletions
8
tests/source/issue-4984/multiple_comments_within.rs
Normal file
8
tests/source/issue-4984/multiple_comments_within.rs
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
#[derive(
|
||||
/* ---------- Some really important comment that just had to go inside the derive --------- */
|
||||
Debug, Clone,/* Another comment */Eq, PartialEq,
|
||||
)]
|
||||
struct Foo {
|
||||
a: i32,
|
||||
b: T,
|
||||
}
|
||||
11
tests/target/issue-4984/multiple_comments_within.rs
Normal file
11
tests/target/issue-4984/multiple_comments_within.rs
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
#[derive(
|
||||
/* ---------- Some really important comment that just had to go inside the derive --------- */
|
||||
Debug,
|
||||
Clone,
|
||||
/* Another comment */ Eq,
|
||||
PartialEq,
|
||||
)]
|
||||
struct Foo {
|
||||
a: i32,
|
||||
b: T,
|
||||
}
|
||||
5
tests/target/issue-4984/should_not_change.rs
Normal file
5
tests/target/issue-4984/should_not_change.rs
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
#[derive(Clone, Debug, Eq, PartialEq)]
|
||||
struct Foo;
|
||||
|
||||
#[derive(Clone)]
|
||||
struct Bar;
|
||||
Loading…
Add table
Add a link
Reference in a new issue