summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/target/issue-2781.rs
blob: f144d716be964eed64aff8c8a55ef481531cb190 (plain)
1
2
3
4
5
6
7
8
9
10
11
pub // Oh, no. A line comment.
struct Foo {}

pub /* Oh, no. A block comment. */ struct Foo {}

mod inner {
    pub // Oh, no. A line comment.
    struct Foo {}

    pub /* Oh, no. A block comment. */ struct Foo {}
}