]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/doc-after-struct-field.rs
Add 'compiler/rustc_codegen_cranelift/' from commit '793d26047f994e23415f8f6bb5686ff2...
[rust.git] / src / test / ui / parser / doc-after-struct-field.rs
1 struct X {
2     a: u8 /** document a */,
3     //~^ ERROR found a documentation comment that doesn't document anything
4     //~| HELP maybe a comment was intended
5 }
6
7 struct Y {
8     a: u8 /// document a
9     //~^ ERROR found a documentation comment that doesn't document anything
10     //~| HELP maybe a comment was intended
11 }
12
13 fn main() {
14     let x = X { a: 1 };
15     let y = Y { a: 1 };
16 }