rust/src/test/ui/parser/doc-before-struct-rbrace-2.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
192 B
Rust
Raw Normal View History

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};
}