]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/doc-before-struct-rbrace-1.rs
Rollup merge of #92024 - pcwalton:per-codegen-unit-names, r=davidtwco
[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 maybe a comment was intended
6 }
7
8 fn main() {
9     let y = X {a: 1};
10 }