rust/src/test/ui/parser/doc-after-struct-field.rs
Esteban Küber d6ea6b972d fix tidy
2019-05-31 13:50:04 -07:00

16 lines
382 B
Rust

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