]> git.proxmox.com Git - rustc.git/blob - src/test/ui/macros/format-foreign.stderr
New upstream version 1.20.0+dfsg1
[rustc.git] / src / test / ui / macros / format-foreign.stderr
1 error: multiple unused formatting arguments
2 --> $DIR/format-foreign.rs:12:5
3 |
4 12 | println!("%.*3$s %s!/n", "Hello,", "World", 4);
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6 |
7 note: argument never used
8 --> $DIR/format-foreign.rs:12:30
9 |
10 12 | println!("%.*3$s %s!/n", "Hello,", "World", 4);
11 | ^^^^^^^^
12 note: argument never used
13 --> $DIR/format-foreign.rs:12:40
14 |
15 12 | println!("%.*3$s %s!/n", "Hello,", "World", 4);
16 | ^^^^^^^
17 note: argument never used
18 --> $DIR/format-foreign.rs:12:49
19 |
20 12 | println!("%.*3$s %s!/n", "Hello,", "World", 4);
21 | ^
22 = help: `%.*3$s` should be written as `{:.2$}`
23 = help: `%s` should be written as `{}`
24 = note: printf formatting not supported; see the documentation for `std::fmt`
25 = note: this error originates in a macro outside of the current crate
26
27 error: argument never used
28 --> $DIR/format-foreign.rs:13:29
29 |
30 13 | println!("%1$*2$.*3$f", 123.456);
31 | ^^^^^^^
32 |
33 = help: `%1$*2$.*3$f` should be written as `{0:1$.2$}`
34 = note: printf formatting not supported; see the documentation for `std::fmt`
35
36 error: argument never used
37 --> $DIR/format-foreign.rs:17:30
38 |
39 17 | println!("{} %f", "one", 2.0);
40 | ^^^
41
42 error: named argument never used
43 --> $DIR/format-foreign.rs:19:39
44 |
45 19 | println!("Hi there, $NAME.", NAME="Tim");
46 | ^^^^^
47 |
48 = help: `$NAME` should be written as `{NAME}`
49 = note: shell formatting not supported; see the documentation for `std::fmt`
50
51 error: aborting due to 4 previous errors
52