rust/tests/ui/parser/doc-comment-in-if-statement.rs

6 lines
128 B
Rust

fn main() {
if true /*!*/ {}
//~^ ERROR outer attributes are not allowed on
//~| ERROR expected outer doc comment
}