summaryrefslogtreecommitdiffstats
path: root/src/test/ui/parser/doc-before-identifier.rs
blob: 76263ad92885d9d2ce9f9451275edc124e613c95 (plain)
1
2
3
4
5
6
7
fn /// document
foo() {}
//~^^ ERROR expected identifier, found doc comment `/// document`

fn main() {
    foo();
}