]> git.lizzy.rs Git - rust.git/blob - src/test/ui/suggestions/sugg_with_positional_args_and_debug_fmt.stderr
Rollup merge of #105234 - JakobDegen:unneeded-field, r=oli-obk
[rust.git] / src / test / ui / suggestions / sugg_with_positional_args_and_debug_fmt.stderr
1 error: named argument `world` is not used by name
2   --> $DIR/sugg_with_positional_args_and_debug_fmt.rs:6:28
3    |
4 LL |     println!("hello {:?}", world = "world");
5    |                     ----   ^^^^^ this named argument is referred to by position in formatting string
6    |                     |
7    |                     this formatting argument uses named argument `world` by position
8    |
9 note: the lint level is defined here
10   --> $DIR/sugg_with_positional_args_and_debug_fmt.rs:3:9
11    |
12 LL | #![deny(warnings)]
13    |         ^^^^^^^^
14    = note: `#[deny(named_arguments_used_positionally)]` implied by `#[deny(warnings)]`
15 help: use the named argument by name to avoid ambiguity
16    |
17 LL |     println!("hello {world:?}", world = "world");
18    |                      +++++
19
20 error: aborting due to previous error
21