1 // (This line has BOM so it's ignored by compiletest for directives)
2 //
3 // compile-flags: --json=diagnostic-short --error-format=json
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_multifile_aux.rs - given the actual fn is
8 // identical (just with a different, but equally sized name), the easiest way
9 // to do this is to ensure the two files are of equal size on disk.
10 
11 // N.B., this file needs CRLF line endings. The .gitattributes file in
12 // this directory should enforce it.
13 
main()14 fn main() {
15 
16     let s : String = 1;  // Error in the middle of line.
17 
18     let s : String = 1
19     ;  // Error before the newline.
20 
21     let s : String =
22 1;  // Error after the newline.
23 
24     let s : String = (
25     );  // Error spanning the newline.
26 }
27