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

13 lines
246 B
Rust

// compile-flags: -Z continue-parse-after-error
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};
}