summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/doc-comment-in-if-statement.rs
blob: 343eac1b81ff0dc958a0e183ec9bdb11f2458ed6 (plain)
1
2
3
4
5
fn main() {
    if true /*!*/ {}
    //~^ ERROR outer attributes are not allowed on
    //~| ERROR expected outer doc comment
}