summary refs log tree commit diff
path: root/src/test/ui/parser/doc-before-struct-rbrace-1.rs
blob: e7055f6a5fcb4aa6a272196a33b74f45450c92c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// 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};
}