fork/rust
git clone https://git.julia.blue/fork/rust
73528e339aa
1.40.0
1error: invalid format string: expected `'}'` but string was terminated 2 --> $DIR/format-string-error.rs:4:16 3 | 4LL | println!("{"); 5 | -^ expected `'}'` in format string 6 | | 7 | because of this opening brace 8 | 9 = note: if you intended to print `{`, you can escape it using `{{` 10 11error: invalid format string: unmatched `}` found 12 --> $DIR/format-string-error.rs:7:15 13 | 14LL | println!("}"); 15 | ^ unmatched `}` in format string 16 | 17 = note: if you intended to print `}`, you can escape it using `}}` 18 19error: invalid format string: invalid argument name `_foo` 20 --> $DIR/format-string-error.rs:9:23 21 | 22LL | let _ = format!("{_foo}", _foo = 6usize); 23 | ^^^^ invalid argument name in format string 24 | 25 = note: argument names cannot start with an underscore 26 27error: invalid format string: invalid argument name `_` 28 --> $DIR/format-string-error.rs:11:23 29 | 30LL | let _ = format!("{_}", _ = 6usize); 31 | ^ invalid argument name in format string 32 | 33 = note: argument names cannot start with an underscore 34 35error: invalid format string: expected `'}'` but string was terminated 36 --> $DIR/format-string-error.rs:13:23 37 | 38LL | let _ = format!("{"); 39 | -^ expected `'}'` in format string 40 | | 41 | because of this opening brace 42 | 43 = note: if you intended to print `{`, you can escape it using `{{` 44 45error: invalid format string: unmatched `}` found 46 --> $DIR/format-string-error.rs:15:22 47 | 48LL | let _ = format!("}"); 49 | ^ unmatched `}` in format string 50 | 51 = note: if you intended to print `}`, you can escape it using `}}` 52 53error: invalid format string: expected `'}'`, found `'\'` 54 --> $DIR/format-string-error.rs:17:23 55 | 56LL | let _ = format!("{\}"); 57 | -^ expected `}` in format string 58 | | 59 | because of this opening brace 60 | 61 = note: if you intended to print `{`, you can escape it using `{{` 62 63error: invalid format string: expected `'}'` but string was terminated 64 --> $DIR/format-string-error.rs:19:35 65 | 66LL | let _ = format!("\n\n\n{\n\n\n"); 67 | - ^ expected `'}'` in format string 68 | | 69 | because of this opening brace 70 | 71 = note: if you intended to print `{`, you can escape it using `{{` 72 73error: invalid format string: expected `'}'` but string was terminated 74 --> $DIR/format-string-error.rs:25:3 75 | 76LL | {"###); 77 | -^ expected `'}'` in format string 78 | | 79 | because of this opening brace 80 | 81 = note: if you intended to print `{`, you can escape it using `{{` 82 83error: invalid format string: expected `'}'` but string was terminated 84 --> $DIR/format-string-error.rs:33:1 85 | 86LL | { 87 | - because of this opening brace 88LL | 89LL | "###); 90 | ^ expected `'}'` in format string 91 | 92 = note: if you intended to print `{`, you can escape it using `{{` 93 94error: invalid format string: unmatched `}` found 95 --> $DIR/format-string-error.rs:39:2 96 | 97LL | } 98 | ^ unmatched `}` in format string 99 | 100 = note: if you intended to print `}`, you can escape it using `}}` 101 102error: invalid format string: unmatched `}` found 103 --> $DIR/format-string-error.rs:47:9 104 | 105LL | } 106 | ^ unmatched `}` in format string 107 | 108 = note: if you intended to print `}`, you can escape it using `}}` 109 110error: 3 positional arguments in format string, but there are 2 arguments 111 --> $DIR/format-string-error.rs:51:15 112 | 113LL | println!("{} {} {}", 1, 2); 114 | ^^ ^^ ^^ - - 115 116error: aborting due to 13 previous errors 117