diff options
Diffstat (limited to 'tests/ui/parser/doc-comment-parsing.rs')
| -rw-r--r-- | tests/ui/parser/doc-comment-parsing.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/ui/parser/doc-comment-parsing.rs b/tests/ui/parser/doc-comment-parsing.rs new file mode 100644 index 00000000000..00f6b0e09a8 --- /dev/null +++ b/tests/ui/parser/doc-comment-parsing.rs @@ -0,0 +1,12 @@ +//! Regression test for https://github.com/rust-lang/rust/issues/10638 + +//@ run-pass + +pub fn main() { + //// I am not a doc comment! + ////////////////// still not a doc comment + /////**** nope, me neither */ + /*** And neither am I! */ + 5; + /*****! certainly not I */ +} |
