]> git.lizzy.rs Git - rust.git/blob - src/tools/rustfmt/tests/source/issue-4398.rs
Rollup merge of #84883 - durin42:allow-unused-prefixes, r=nikic
[rust.git] / src / tools / rustfmt / tests / source / issue-4398.rs
1 impl Struct {
2     /// Documentation for `foo`
3     #[rustfmt::skip] // comment on why use a skip here
4     pub fn foo(&self) {}
5 }
6
7 impl Struct {
8     /// Documentation for `foo`
9        #[rustfmt::skip] // comment on why use a skip here
10     pub fn foo(&self) {}
11 }
12
13 /// Documentation for `Struct`
14 #[rustfmt::skip] // comment
15 impl Struct {
16     /// Documentation for `foo`
17        #[rustfmt::skip] // comment on why use a skip here
18     pub fn foo(&self) {}
19 }