]> git.lizzy.rs Git - rust.git/blob - tests/ui/parser/doc-before-identifier.rs
Rollup merge of #106797 - FawazTirmizi:dev/issues/104284, r=bjorn3
[rust.git] / tests / ui / parser / doc-before-identifier.rs
1 fn /// document
2 foo() {}
3 //~^^ ERROR expected identifier, found doc comment `/// document`
4
5 fn main() {
6     foo();
7 }