summaryrefslogtreecommitdiffstats
path: root/src/test/ui/parser/doc-before-struct-rbrace-2.rs
blob: dda138f1a8835142596a9e7e72ef82f309957dec (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 maybe a comment was intended
}

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