summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/target/issue_5691.rs
blob: e3aad15db0d5b499d444378ab23106be9b0ec256 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
struct S<const C: usize>
where
    [(); { num_slots!(C) }]:, {
    /* An asterisk-based, or a double-slash-prefixed, comment here is
       required to trigger the fmt bug.

    A single-line triple-slash-prefixed comment (with a field following it) is not enough - it will not trigger the fmt bug.

    Side note: If you have a combination of two, or all three of the
    above mentioned types of comments here, some of them disappear
    after `cargo fmt`.

    The bug gets triggered even if a field definition following the
    (asterisk-based, or a double-slash-prefixed) comment, too.
    */
}