diff options
| author | Masaki Hara <ackie.h.gmai@gmail.com> | 2017-05-08 22:29:24 +0900 |
|---|---|---|
| committer | Masaki Hara <ackie.h.gmai@gmail.com> | 2017-05-08 22:29:24 +0900 |
| commit | 0e8e45c74068b72301f9045f0efc38ba8b51e0a4 (patch) | |
| tree | c72cf8c4e85fdb1647c318d7cba3896dfc2da09f /src/test/parse-fail | |
| parent | 70198a0a44633c7c9d14fce2159c1f750491287b (diff) | |
| download | rust-0e8e45c74068b72301f9045f0efc38ba8b51e0a4.tar.gz rust-0e8e45c74068b72301f9045f0efc38ba8b51e0a4.zip | |
Allow bare CR in ////-style comment.
Diffstat (limited to 'src/test/parse-fail')
| -rw-r--r-- | src/test/parse-fail/lex-bare-cr-string-literal-doc-comment.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/test/parse-fail/lex-bare-cr-string-literal-doc-comment.rs b/src/test/parse-fail/lex-bare-cr-string-literal-doc-comment.rs index f8943057543..ac085d47511 100644 --- a/src/test/parse-fail/lex-bare-cr-string-literal-doc-comment.rs +++ b/src/test/parse-fail/lex-bare-cr-string-literal-doc-comment.rs @@ -21,6 +21,12 @@ pub fn bar() {} //~^^ ERROR: bare CR not allowed in block doc-comment fn main() { + //! doc comment with bare CR: ' ' + //~^ ERROR: bare CR not allowed in doc-comment + + /*! block doc comment with bare CR: ' ' */ + //~^ ERROR: bare CR not allowed in block doc-comment + // the following string literal has a bare CR in it let _s = "foo bar"; //~ ERROR: bare CR not allowed in string |
