fork/rust

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

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
1.8 KiB54 linesraw
1error: invalid format string: expected format parameter to occur after `:`
2  --> $DIR/format-string-wrong-order.rs:3:15
3   |
4LL |     format!("{?:}", bar);
5   |               ^ expected `?` to occur after `:` in format string
6   |
7   = note: `?` comes after `:`, try `:?` instead
8
9error: invalid format string: expected format parameter to occur after `:`
10  --> $DIR/format-string-wrong-order.rs:5:15
11   |
12LL |     format!("{?:bar}");
13   |               ^ expected `?` to occur after `:` in format string
14   |
15   = note: `?` comes after `:`, try `bar:?` instead
16
17error: invalid format string: expected format parameter to occur after `:`
18  --> $DIR/format-string-wrong-order.rs:7:15
19   |
20LL |     format!("{?:?}", bar);
21   |               ^ expected `?` to occur after `:` in format string
22   |
23   = note: `?` comes after `:`, try `:?` instead
24
25error: invalid format string: expected `'}'`, found `'?'`
26  --> $DIR/format-string-wrong-order.rs:9:15
27   |
28LL |     format!("{??}", bar);
29   |              -^ expected `'}'` in format string
30   |              |
31   |              because of this opening brace
32   |
33   = note: if you intended to print `{`, you can escape it using `{{`
34
35error: invalid format string: expected `'}'`, found `'?'`
36  --> $DIR/format-string-wrong-order.rs:11:15
37   |
38LL |     format!("{?;bar}");
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: expected format parameter to occur after `:`
46  --> $DIR/format-string-wrong-order.rs:13:15
47   |
48LL |     format!("{?:#?}", bar);
49   |               ^ expected `?` to occur after `:` in format string
50   |
51   = note: `?` comes after `:`, try `:?` instead
52
53error: aborting due to 6 previous errors
54