summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/source/issue-4398.rs
blob: b0095aaac7918edb6386aa6ee455ab4a8ec87a1b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
impl Struct {
    /// Documentation for `foo`
    #[rustfmt::skip] // comment on why use a skip here
    pub fn foo(&self) {}
}

impl Struct {
    /// Documentation for `foo`
       #[rustfmt::skip] // comment on why use a skip here
    pub fn foo(&self) {}
}

/// Documentation for `Struct`
#[rustfmt::skip] // comment
impl Struct {
    /// Documentation for `foo`
       #[rustfmt::skip] // comment on why use a skip here
    pub fn foo(&self) {}
}