blob: 03faa6733e21feaceba53a6f4bcb2f94251a77df (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
struct X {
a: u8 /** document a */,
//~^ ERROR found a documentation comment that doesn't document anything
//~| HELP if a comment was intended use `//`
}
struct Y {
a: u8 /// document a
//~^ ERROR found a documentation comment that doesn't document anything
//~| HELP if a comment was intended use `//`
}
fn main() {
let x = X { a: 1 };
let y = Y { a: 1 };
}
|