blob: 7870555aebb23d003fdb88f3c54e939d9e27f567 [file] [log] [blame]
// compile-flags: -Z continue-parse-after-error
struct X {
a: u8 /** document a */,
//~^ ERROR found a documentation comment that doesn't document anything
//~| HELP maybe a comment was intended
}
struct Y {
a: u8 /// document a
//~^ ERROR found a documentation comment that doesn't document anything
//~| HELP maybe a comment was intended
}
fn main() {
let x = X { a: 1 };
let y = Y { a: 1 };
}