diff options
Diffstat (limited to 'tests/ui/parser/doc-before-identifier.rs')
-rw-r--r-- | tests/ui/parser/doc-before-identifier.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/ui/parser/doc-before-identifier.rs b/tests/ui/parser/doc-before-identifier.rs new file mode 100644 index 000000000..76263ad92 --- /dev/null +++ b/tests/ui/parser/doc-before-identifier.rs @@ -0,0 +1,7 @@ +fn /// document +foo() {} +//~^^ ERROR expected identifier, found doc comment `/// document` + +fn main() { + foo(); +} |