fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
5.2 KiB177 linesraw
1error: incorrect unicode escape sequence
2  --> $DIR/format-string-error-2.rs:77:20
3   |
4LL |     println!("\x7B}\u8 {", 1);
5   |                    ^^-
6   |                      |
7   |                      help: format of unicode escape sequences uses braces: `\u{8}`
8
9error: invalid format string: expected `'}'`, found `'a'`
10  --> $DIR/format-string-error-2.rs:5:5
11   |
12LL |     format!("{
13   |              - because of this opening brace
14LL |     a");
15   |     ^ expected `}` in format string
16   |
17   = note: if you intended to print `{`, you can escape it using `{{`
18
19error: invalid format string: expected `'}'`, found `'b'`
20  --> $DIR/format-string-error-2.rs:9:5
21   |
22LL |     format!("{ \
23   |              - because of this opening brace
24LL | 
25LL |     b");
26   |     ^ expected `}` in format string
27   |
28   = note: if you intended to print `{`, you can escape it using `{{`
29
30error: invalid format string: expected `'}'`, found `'\'`
31  --> $DIR/format-string-error-2.rs:11:18
32   |
33LL |     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
40error: invalid format string: expected `'}'`, found `'\'`
41  --> $DIR/format-string-error-2.rs:15:18
42   |
43LL |     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
50error: invalid format string: expected `'}'`, found `'e'`
51  --> $DIR/format-string-error-2.rs:21:5
52   |
53LL |     format!("{ \n
54   |              - because of this opening brace
55LL | \n
56LL |     e");
57   |     ^ expected `}` in format string
58   |
59   = note: if you intended to print `{`, you can escape it using `{{`
60
61error: invalid format string: expected `'}'`, found `'a'`
62  --> $DIR/format-string-error-2.rs:25:5
63   |
64LL |     {
65   |     - because of this opening brace
66LL |     a");
67   |     ^ expected `}` in format string
68   |
69   = note: if you intended to print `{`, you can escape it using `{{`
70
71error: invalid format string: expected `'}'`, found `'a'`
72  --> $DIR/format-string-error-2.rs:29:5
73   |
74LL |     {
75   |     - because of this opening brace
76LL |     a
77   |     ^ expected `}` in format string
78   |
79   = note: if you intended to print `{`, you can escape it using `{{`
80
81error: invalid format string: expected `'}'`, found `'b'`
82  --> $DIR/format-string-error-2.rs:35:5
83   |
84LL |     { \
85   |     - because of this opening brace
86LL |         \
87LL |     b");
88   |     ^ expected `}` in format string
89   |
90   = note: if you intended to print `{`, you can escape it using `{{`
91
92error: invalid format string: expected `'}'`, found `'b'`
93  --> $DIR/format-string-error-2.rs:40:5
94   |
95LL |     { \
96   |     - because of this opening brace
97LL |         \
98LL |     b \
99   |     ^ expected `}` in format string
100   |
101   = note: if you intended to print `{`, you can escape it using `{{`
102
103error: invalid format string: expected `'}'`, found `'\'`
104  --> $DIR/format-string-error-2.rs:45:8
105   |
106LL | 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
113error: invalid format string: expected `'}'`, found `'\'`
114  --> $DIR/format-string-error-2.rs:50:8
115   |
116LL | 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
123error: invalid format string: expected `'}'`, found `'e'`
124  --> $DIR/format-string-error-2.rs:57:5
125   |
126LL |   { \n
127   |   - because of this opening brace
128LL | \n
129LL |     e");
130   |     ^ expected `}` in format string
131   |
132   = note: if you intended to print `{`, you can escape it using `{{`
133
134error: invalid format string: expected `'}'`, found `'a'`
135  --> $DIR/format-string-error-2.rs:67:5
136   |
137LL |     {
138   |     - because of this opening brace
139LL |     asdf}
140   |     ^ expected `}` in format string
141   |
142   = note: if you intended to print `{`, you can escape it using `{{`
143
144error: 1 positional argument in format string, but no arguments were given
145  --> $DIR/format-string-error-2.rs:70:17
146   |
147LL |     println!("\t{}");
148   |                 ^^
149
150error: invalid format string: expected `'}'` but string was terminated
151  --> $DIR/format-string-error-2.rs:74:27
152   |
153LL |     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
160error: invalid format string: unmatched `}` found
161  --> $DIR/format-string-error-2.rs:81:21
162   |
163LL |     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
168error: invalid format string: unmatched `}` found
169  --> $DIR/format-string-error-2.rs:84:21
170   |
171LL |     println!(r#"\x7B}\u8 {"#, 1);
172   |                     ^ unmatched `}` in format string
173   |
174   = note: if you intended to print `}`, you can escape it using `}}`
175
176error: aborting due to 18 previous errors
177