Skip to content

Commit fa2a273

Browse files
committed
test: add test case with indented trait header comments
1 parent 91944b0 commit fa2a273

2 files changed

Lines changed: 16 additions & 0 deletions

File tree

tests/source/trait.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,14 @@ auto /* post auto comment */ trait PubConstUnsafeAutoExampleWithComments {}
124124

125125
pub /* first */ trait /* second */ MyTrait /* third */ {}
126126

127+
pub
128+
/* a */
129+
trait
130+
/* b */
131+
Foo
132+
/* c */
133+
{}
134+
127135
// #3006
128136
trait Foo<'a> {
129137
type Bar< 'a >;

tests/target/trait.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,14 @@ auto /* post auto comment */ trait PubConstUnsafeAutoExampleWithComments
163163

164164
pub /* first */ trait /* second */ MyTrait /* third */ {}
165165

166+
pub
167+
/* a */
168+
trait
169+
/* b */
170+
Foo /* c */
171+
{
172+
}
173+
166174
// #3006
167175
trait Foo<'a> {
168176
type Bar<'a>;

0 commit comments

Comments
 (0)