1 warning: named argument `f` is not used by name
2 --> $DIR/issue-99907.rs:5:30
4 LL | println!("Hello {:.1}!", f = 0.02f32);
5 | ----- ^ this named argument is referred to by position in formatting string
7 | this formatting argument uses named argument `f` by position
9 = note: `#[warn(named_arguments_used_positionally)]` on by default
10 help: use the named argument by name to avoid ambiguity
12 LL | println!("Hello {f:.1}!", f = 0.02f32);
15 warning: named argument `f` is not used by name
16 --> $DIR/issue-99907.rs:9:31
18 LL | println!("Hello {:1.1}!", f = 0.02f32);
19 | ------ ^ this named argument is referred to by position in formatting string
21 | this formatting argument uses named argument `f` by position
23 help: use the named argument by name to avoid ambiguity
25 LL | println!("Hello {f:1.1}!", f = 0.02f32);
28 warning: named argument `f` is not used by name
29 --> $DIR/issue-99907.rs:13:27
31 LL | println!("Hello {}!", f = 0.02f32);
32 | -- ^ this named argument is referred to by position in formatting string
34 | this formatting argument uses named argument `f` by position
36 help: use the named argument by name to avoid ambiguity
38 LL | println!("Hello {f}!", f = 0.02f32);
41 warning: named argument `f` is not used by name
42 --> $DIR/issue-99907.rs:17:28
44 LL | println!("Hello { }!", f = 0.02f32);
45 | --- ^ this named argument is referred to by position in formatting string
47 | this formatting argument uses named argument `f` by position
49 help: use the named argument by name to avoid ambiguity
51 LL | println!("Hello {f}!", f = 0.02f32);
54 warning: named argument `f` is not used by name
55 --> $DIR/issue-99907.rs:21:29
57 LL | println!("Hello { }!", f = 0.02f32);
58 | ---- ^ this named argument is referred to by position in formatting string
60 | this formatting argument uses named argument `f` by position
62 help: use the named argument by name to avoid ambiguity
64 LL | println!("Hello {f}!", f = 0.02f32);
67 warning: 5 warnings emitted