]> git.lizzy.rs Git - rust.git/blob - src/test/ui/macros/format-unused-lables.stderr
Rollup merge of #52695 - oli-obk:const_err_panic, r=petrochenkov
[rust.git] / src / test / ui / macros / format-unused-lables.stderr
1 error: multiple unused formatting arguments
2   --> $DIR/format-unused-lables.rs:12:22
3    |
4 LL |     println!("Test", 123, 456, 789);
5    |              ------  ^^^  ^^^  ^^^
6    |              |
7    |              multiple missing formatting specifiers
8
9 error: multiple unused formatting arguments
10   --> $DIR/format-unused-lables.rs:16:9
11    |
12 LL |     println!("Test2",
13    |              ------- multiple missing formatting specifiers
14 LL |         123,  //~ ERROR multiple unused formatting arguments
15    |         ^^^
16 LL |         456,
17    |         ^^^
18 LL |         789
19    |         ^^^
20
21 error: named argument never used
22   --> $DIR/format-unused-lables.rs:21:35
23    |
24 LL |     println!("Some stuff", UNUSED="args"); //~ ERROR named argument never used
25    |              ------------         ^^^^^^
26    |              |
27    |              formatting specifier missing
28
29 error: multiple unused formatting arguments
30   --> $DIR/format-unused-lables.rs:24:9
31    |
32 LL |     println!("Some more $STUFF",
33    |              ------------------ multiple missing formatting specifiers
34 LL |         "woo!",  //~ ERROR multiple unused formatting arguments
35    |         ^^^^^^
36 LL |             STUFF=
37 LL |        "things"
38    |        ^^^^^^^^
39 LL |              , UNUSED="args");
40    |                       ^^^^^^
41    |
42    = help: `$STUFF` should be written as `{STUFF}`
43    = note: shell formatting not supported; see the documentation for `std::fmt`
44
45 error: aborting due to 4 previous errors
46