]> git.lizzy.rs Git - rust.git/blob - tests/ui/parser/doc-before-struct-rbrace-1.stderr
Merge commit '598f0909568a51de8a2d1148f55a644fd8dffad0' into sync_cg_clif-2023-01-24
[rust.git] / tests / ui / parser / doc-before-struct-rbrace-1.stderr
1 error[E0585]: found a documentation comment that doesn't document anything
2   --> $DIR/doc-before-struct-rbrace-1.rs:3:5
3    |
4 LL | struct X {
5    |        - while parsing this struct
6 LL |     a: u8,
7 LL |     /// document
8    |     ^^^^^^^^^^^^
9    |
10    = help: doc comments must come before what they document, if a comment was intended use `//`
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0585`.