]> git.lizzy.rs Git - rust.git/blob - tests/ui/parser/doc-before-struct-rbrace-2.rs
Merge commit '598f0909568a51de8a2d1148f55a644fd8dffad0' into sync_cg_clif-2023-01-24
[rust.git] / tests / ui / parser / doc-before-struct-rbrace-2.rs
1 struct X {
2     a: u8 /// document
3     //~^ ERROR found a documentation comment that doesn't document anything
4     //~| HELP if a comment was intended use `//`
5 }
6
7 fn main() {
8     let y = X {a: 1};
9 }