]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/lexer-crlf-line-endings-string-literal-doc-comment.rs
3 // ignore-tidy-cr (repeated again because of tidy bug)
4 // license is ignored because tidy can't handle the CRLF here properly.
6 // N.B., this file needs CRLF line endings. The .gitattributes file in
7 // this directory should enforce it.
9 // ignore-pretty issue #37195
11 /// Doc comment that ends in CRLF
14 /** Block doc comment that
15 * contains CRLF characters
22 assert_eq
!(s
, "string\nliteral");
24 let s
= "literal with \
26 assert_eq
!(s
, "literal with escaped newline");
30 assert_eq
!(s
, "string\nliteral");
31 let s
= br
"byte string
33 assert_eq
!(s
, "byte string\nliteral".as_bytes());
35 // validate that our source file has CRLF endings
36 let source
= include_str
!("lexer-crlf-line-endings-string-literal-doc-comment.rs");
37 assert
!(source
.contains("string\r\nliteral"));