]> git.proxmox.com Git - rustc.git/blob - src/test/ui/fmt/format-string-error-2.stderr
New upstream version 1.37.0+dfsg1
[rustc.git] / src / test / ui / fmt / format-string-error-2.stderr
1 error: incorrect unicode escape sequence
2 --> $DIR/format-string-error-2.rs:77:20
3 |
4 LL | println!("\x7B}\u8 {", 1);
5 | ^^-
6 | |
7 | help: format of unicode escape sequences uses braces: `\u{8}`
8
9 error: invalid format string: expected `'}'`, found `'a'`
10 --> $DIR/format-string-error-2.rs:5:5
11 |
12 LL | format!("{
13 | - because of this opening brace
14 LL | a");
15 | ^ expected `}` in format string
16 |
17 = note: if you intended to print `{`, you can escape it using `{{`
18
19 error: invalid format string: expected `'}'`, found `'b'`
20 --> $DIR/format-string-error-2.rs:9:5
21 |
22 LL | format!("{ \
23 | - because of this opening brace
24 LL |
25 LL | b");
26 | ^ expected `}` in format string
27 |
28 = note: if you intended to print `{`, you can escape it using `{{`
29
30 error: invalid format string: expected `'}'`, found `'\'`
31 --> $DIR/format-string-error-2.rs:11:18
32 |
33 LL | format!(r#"{ \
34 | - ^ expected `}` in format string
35 | |
36 | because of this opening brace
37 |
38 = note: if you intended to print `{`, you can escape it using `{{`
39
40 error: invalid format string: expected `'}'`, found `'\'`
41 --> $DIR/format-string-error-2.rs:15:18
42 |
43 LL | format!(r#"{ \n
44 | - ^ expected `}` in format string
45 | |
46 | because of this opening brace
47 |
48 = note: if you intended to print `{`, you can escape it using `{{`
49
50 error: invalid format string: expected `'}'`, found `'e'`
51 --> $DIR/format-string-error-2.rs:21:5
52 |
53 LL | format!("{ \n
54 | - because of this opening brace
55 LL | \n
56 LL | e");
57 | ^ expected `}` in format string
58 |
59 = note: if you intended to print `{`, you can escape it using `{{`
60
61 error: invalid format string: expected `'}'`, found `'a'`
62 --> $DIR/format-string-error-2.rs:25:5
63 |
64 LL | {
65 | - because of this opening brace
66 LL | a");
67 | ^ expected `}` in format string
68 |
69 = note: if you intended to print `{`, you can escape it using `{{`
70
71 error: invalid format string: expected `'}'`, found `'a'`
72 --> $DIR/format-string-error-2.rs:29:5
73 |
74 LL | {
75 | - because of this opening brace
76 LL | a
77 | ^ expected `}` in format string
78 |
79 = note: if you intended to print `{`, you can escape it using `{{`
80
81 error: invalid format string: expected `'}'`, found `'b'`
82 --> $DIR/format-string-error-2.rs:35:5
83 |
84 LL | { \
85 | - because of this opening brace
86 LL | \
87 LL | b");
88 | ^ expected `}` in format string
89 |
90 = note: if you intended to print `{`, you can escape it using `{{`
91
92 error: invalid format string: expected `'}'`, found `'b'`
93 --> $DIR/format-string-error-2.rs:40:5
94 |
95 LL | { \
96 | - because of this opening brace
97 LL | \
98 LL | b \
99 | ^ expected `}` in format string
100 |
101 = note: if you intended to print `{`, you can escape it using `{{`
102
103 error: invalid format string: expected `'}'`, found `'\'`
104 --> $DIR/format-string-error-2.rs:45:8
105 |
106 LL | raw { \
107 | - ^ expected `}` in format string
108 | |
109 | because of this opening brace
110 |
111 = note: if you intended to print `{`, you can escape it using `{{`
112
113 error: invalid format string: expected `'}'`, found `'\'`
114 --> $DIR/format-string-error-2.rs:50:8
115 |
116 LL | raw { \n
117 | - ^ expected `}` in format string
118 | |
119 | because of this opening brace
120 |
121 = note: if you intended to print `{`, you can escape it using `{{`
122
123 error: invalid format string: expected `'}'`, found `'e'`
124 --> $DIR/format-string-error-2.rs:57:5
125 |
126 LL | { \n
127 | - because of this opening brace
128 LL | \n
129 LL | e");
130 | ^ expected `}` in format string
131 |
132 = note: if you intended to print `{`, you can escape it using `{{`
133
134 error: invalid format string: expected `'}'`, found `'a'`
135 --> $DIR/format-string-error-2.rs:67:5
136 |
137 LL | {
138 | - because of this opening brace
139 LL | asdf}
140 | ^ expected `}` in format string
141 |
142 = note: if you intended to print `{`, you can escape it using `{{`
143
144 error: 1 positional argument in format string, but no arguments were given
145 --> $DIR/format-string-error-2.rs:70:17
146 |
147 LL | println!("\t{}");
148 | ^^
149
150 error: invalid format string: expected `'}'` but string was terminated
151 --> $DIR/format-string-error-2.rs:74:27
152 |
153 LL | println!("\x7B}\u{8} {", 1);
154 | -^ expected `'}'` in format string
155 | |
156 | because of this opening brace
157 |
158 = note: if you intended to print `{`, you can escape it using `{{`
159
160 error: invalid format string: unmatched `}` found
161 --> $DIR/format-string-error-2.rs:81:21
162 |
163 LL | println!(r#"\x7B}\u{8} {"#, 1);
164 | ^ unmatched `}` in format string
165 |
166 = note: if you intended to print `}`, you can escape it using `}}`
167
168 error: invalid format string: unmatched `}` found
169 --> $DIR/format-string-error-2.rs:84:21
170 |
171 LL | println!(r#"\x7B}\u8 {"#, 1);
172 | ^ unmatched `}` in format string
173 |
174 = note: if you intended to print `}`, you can escape it using `}}`
175
176 error: aborting due to 18 previous errors
177