rust/src/test/ui/parser/doc-before-identifier.rs

9 lines
166 B
Rust

// compile-flags: -Z continue-parse-after-error
fn /// document
foo() {}
//~^^ ERROR expected identifier, found doc comment `/// document`
fn main() {
foo();
}