diff options
Diffstat (limited to 'tests/ui/parser/doc-before-rbrace.rs')
-rw-r--r-- | tests/ui/parser/doc-before-rbrace.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/ui/parser/doc-before-rbrace.rs b/tests/ui/parser/doc-before-rbrace.rs new file mode 100644 index 000000000..570306f2c --- /dev/null +++ b/tests/ui/parser/doc-before-rbrace.rs @@ -0,0 +1,5 @@ +fn main() { + println!("Hi"); /// hi + //~^ ERROR found a documentation comment that doesn't document anything + //~| HELP if a comment was intended use `//` +} |