]> git.lizzy.rs Git - rust.git/blob - tests/ui/json/json-bom-plus-crlf-multifile-aux.rs
Auto merge of #106520 - ehuss:update-mdbook, r=Mark-Simulacrum
[rust.git] / tests / ui / json / json-bom-plus-crlf-multifile-aux.rs
1 // (This line has BOM so it's ignored by compiletest for directives)\r
2 //\r
3 // ignore-test Not a test. Used by other tests\r
4 // ignore-tidy-cr\r
5 \r
6 // For easier verifying, the byte offsets in this file should match those\r
7 // in the json-bom-plus-crlf.rs - given the actual fn is identical (just with\r
8 // a different, but equally sized name), the easiest way to do this is to\r
9 // ensure the two files are of equal size on disk.\r
10 // Padding............................\r
11 \r
12 // N.B., this file needs CRLF line endings. The .gitattributes file in\r
13 // this directory should enforce it.\r
14 \r
15 pub fn test() {\r
16 \r
17     let s : String = 1;  // Error in the middle of line.\r
18 \r
19     let s : String = 1\r
20     ;  // Error before the newline.\r
21 \r
22     let s : String =\r
23 1;  // Error after the newline.\r
24 \r
25     let s : String = (\r
26     );  // Error spanning the newline.\r
27 }\r