]> git.lizzy.rs Git - rust.git/blob - src/test/ui/macros/format-foreign.stderr
Auto merge of #61741 - Centril:rollup-fgro5kz, r=Centril
[rust.git] / src / test / ui / macros / format-foreign.stderr
1 error: multiple unused formatting arguments
2   --> $DIR/format-foreign.rs:2:30
3    |
4 LL |     println!("%.*3$s %s!\n", "Hello,", "World", 4);
5    |              --------------  ^^^^^^^^  ^^^^^^^  ^ argument never used
6    |              |               |         |
7    |              |               |         argument never used
8    |              |               argument never used
9    |              multiple missing formatting specifiers
10    |
11    = note: printf formatting not supported; see the documentation for `std::fmt`
12 help: format specifiers use curly braces
13    |
14 LL |     println!("{:.2$} {}!\n", "Hello,", "World", 4);
15    |               ^^^^^^ ^^
16
17 error: argument never used
18   --> $DIR/format-foreign.rs:3:29
19    |
20 LL |     println!("%1$*2$.*3$f", 123.456);
21    |               -----------   ^^^^^^^ argument never used
22    |               |
23    |               help: format specifiers use curly braces: `{0:1$.2$}`
24    |
25    = note: printf formatting not supported; see the documentation for `std::fmt`
26
27 error: multiple unused formatting arguments
28   --> $DIR/format-foreign.rs:6:7
29    |
30 LL |       println!(r###"%.*3$s
31    |  ______________-
32 LL | |         %s!\n
33 LL | | "###, "Hello,", "World", 4);
34    | |    -  ^^^^^^^^  ^^^^^^^  ^ argument never used
35    | |    |  |         |
36    | |    |  |         argument never used
37    | |____|  argument never used
38    |      multiple missing formatting specifiers
39    |
40    = note: printf formatting not supported; see the documentation for `std::fmt`
41 help: format specifiers use curly braces
42    |
43 LL |     println!(r###"{:.2$}
44 LL |         {}!\n
45    |
46
47 error: argument never used
48   --> $DIR/format-foreign.rs:12:30
49    |
50 LL |     println!("{} %f", "one", 2.0);
51    |              -------         ^^^ argument never used
52    |              |
53    |              formatting specifier missing
54
55 error: named argument never used
56   --> $DIR/format-foreign.rs:14:39
57    |
58 LL |     println!("Hi there, $NAME.", NAME="Tim");
59    |                         -----         ^^^^^ named argument never used
60    |                         |
61    |                         help: format specifiers use curly braces: `{NAME}`
62    |
63    = note: shell formatting not supported; see the documentation for `std::fmt`
64
65 error: multiple unused formatting arguments
66   --> $DIR/format-foreign.rs:15:32
67    |
68 LL |     println!("$1 $0 $$ $NAME", 1, 2, NAME=3);
69    |              ----------------  ^  ^       ^ named argument never used
70    |              |                 |  |
71    |              |                 |  argument never used
72    |              |                 argument never used
73    |              multiple missing formatting specifiers
74    |
75    = note: shell formatting not supported; see the documentation for `std::fmt`
76 help: format specifiers use curly braces
77    |
78 LL |     println!("{1} {0} $$ {NAME}", 1, 2, NAME=3);
79    |               ^^^ ^^^    ^^^^^^
80
81 error: aborting due to 6 previous errors
82