]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/doc-before-struct-rbrace-1.rs
Rollup merge of #106043 - c410-f3r:moar-errors, r=petrochenkov
[rust.git] / src / test / ui / parser / doc-before-struct-rbrace-1.rs
1 struct X {
2     a: u8,
3     /// document
4     //~^ ERROR found a documentation comment that doesn't document anything
5     //~| HELP if a comment was intended use `//`
6 }
7
8 fn main() {
9     let y = X {a: 1};
10 }