]> git.proxmox.com Git - rustc.git/blob - src/test/ui/macros/issue-99907.stderr
New upstream version 1.66.0+dfsg1
[rustc.git] / src / test / ui / macros / issue-99907.stderr
1 warning: named argument `f` is not used by name
2 --> $DIR/issue-99907.rs:5:30
3 |
4 LL | println!("Hello {:.1}!", f = 0.02f32);
5 | ----- ^ this named argument is referred to by position in formatting string
6 | |
7 | this formatting argument uses named argument `f` by position
8 |
9 = note: `#[warn(named_arguments_used_positionally)]` on by default
10 help: use the named argument by name to avoid ambiguity
11 |
12 LL | println!("Hello {f:.1}!", f = 0.02f32);
13 | +
14
15 warning: named argument `f` is not used by name
16 --> $DIR/issue-99907.rs:9:31
17 |
18 LL | println!("Hello {:1.1}!", f = 0.02f32);
19 | ------ ^ this named argument is referred to by position in formatting string
20 | |
21 | this formatting argument uses named argument `f` by position
22 |
23 help: use the named argument by name to avoid ambiguity
24 |
25 LL | println!("Hello {f:1.1}!", f = 0.02f32);
26 | +
27
28 warning: named argument `f` is not used by name
29 --> $DIR/issue-99907.rs:13:27
30 |
31 LL | println!("Hello {}!", f = 0.02f32);
32 | -- ^ this named argument is referred to by position in formatting string
33 | |
34 | this formatting argument uses named argument `f` by position
35 |
36 help: use the named argument by name to avoid ambiguity
37 |
38 LL | println!("Hello {f}!", f = 0.02f32);
39 | +
40
41 warning: named argument `f` is not used by name
42 --> $DIR/issue-99907.rs:17:28
43 |
44 LL | println!("Hello { }!", f = 0.02f32);
45 | --- ^ this named argument is referred to by position in formatting string
46 | |
47 | this formatting argument uses named argument `f` by position
48 |
49 help: use the named argument by name to avoid ambiguity
50 |
51 LL | println!("Hello {f}!", f = 0.02f32);
52 | +
53
54 warning: named argument `f` is not used by name
55 --> $DIR/issue-99907.rs:21:29
56 |
57 LL | println!("Hello { }!", f = 0.02f32);
58 | ---- ^ this named argument is referred to by position in formatting string
59 | |
60 | this formatting argument uses named argument `f` by position
61 |
62 help: use the named argument by name to avoid ambiguity
63 |
64 LL | println!("Hello {f}!", f = 0.02f32);
65 | +
66
67 warning: 5 warnings emitted
68