1 warning: named argument `_x` is not used by name
2 --> $DIR/issue-98466.rs:7:26
4 LL | println!("_x is {}", _x = 5);
5 | -- ^^ this named argument is referred to by position in formatting string
7 | this formatting argument uses named argument `_x` 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!("_x is {_x}", _x = 5);
15 warning: named argument `y` is not used by name
16 --> $DIR/issue-98466.rs:10:26
18 LL | println!("_x is {}", y = _x);
19 | -- ^ this named argument is referred to by position in formatting string
21 | this formatting argument uses named argument `y` by position
23 help: use the named argument by name to avoid ambiguity
25 LL | println!("_x is {y}", y = _x);
28 warning: named argument `y` is not used by name
29 --> $DIR/issue-98466.rs:13:83
31 LL | println!("first positional arg {}, second positional arg {}, _x is {}", 1, 2, y = _x);
32 | -- ^ this named argument is referred to by position in formatting string
34 | this formatting argument uses named argument `y` by position
36 help: use the named argument by name to avoid ambiguity
38 LL | println!("first positional arg {}, second positional arg {}, _x is {y}", 1, 2, y = _x);
41 warning: named argument `_x` is not used by name
42 --> $DIR/issue-98466.rs:19:34
44 LL | let _f = format!("_x is {}", _x = 5);
45 | -- ^^ this named argument is referred to by position in formatting string
47 | this formatting argument uses named argument `_x` by position
49 help: use the named argument by name to avoid ambiguity
51 LL | let _f = format!("_x is {_x}", _x = 5);
54 warning: named argument `y` is not used by name
55 --> $DIR/issue-98466.rs:22:34
57 LL | let _f = format!("_x is {}", y = _x);
58 | -- ^ this named argument is referred to by position in formatting string
60 | this formatting argument uses named argument `y` by position
62 help: use the named argument by name to avoid ambiguity
64 LL | let _f = format!("_x is {y}", y = _x);
67 warning: named argument `y` is not used by name
68 --> $DIR/issue-98466.rs:25:91
70 LL | let _f = format!("first positional arg {}, second positional arg {}, _x is {}", 1, 2, y = _x);
71 | -- ^ this named argument is referred to by position in formatting string
73 | this formatting argument uses named argument `y` by position
75 help: use the named argument by name to avoid ambiguity
77 LL | let _f = format!("first positional arg {}, second positional arg {}, _x is {y}", 1, 2, y = _x);
80 warning: 6 warnings emitted