rustc/tests/ui/parser/doc-before-identifier.rs
2023-08-02 10:33:26 +02:00

8 lines
117 B
Rust

fn /// document
foo() {}
//~^^ ERROR expected identifier, found doc comment `/// document`
fn main() {
foo();
}