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

5 lines
90 B
Rust
Raw Normal View History

fn main() {
if true /*!*/ {}
//~^ ERROR expected `{`, found doc comment `/*!*/`
}