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