summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/doc-before-struct-rbrace-2.rs
blob: 2b2aadf7984a2933c366e9c34b04367a6c56d9d6 (plain)
1
2
3
4
5
6
7
8
9
struct X {
    a: u8 /// document
    //~^ ERROR found a documentation comment that doesn't document anything
    //~| HELP if a comment was intended use `//`
}

fn main() {
    let y = X {a: 1};
}