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