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

6 lines
128 B
Rust
Raw Normal View History

fn main() {
if true /*!*/ {}
2020-03-07 16:16:29 +00:00
//~^ ERROR outer attributes are not allowed on
//~| ERROR expected outer doc comment
}