--> $DIR/ifmt-bad-arg.rs:40:33
|
LL | format!("{foo}", foo=1, foo=2);
- | ^
- |
-note: previously here
- --> $DIR/ifmt-bad-arg.rs:40:26
- |
-LL | format!("{foo}", foo=1, foo=2);
- | ^
+ | - ^ duplicate argument
+ | |
+ | previously here
error: positional arguments cannot follow named arguments
--> $DIR/ifmt-bad-arg.rs:41:35
= note: for information about formatting flags, visit https://doc.rust-lang.org/std/fmt/index.html
error: unknown format trait `foo`
- --> $DIR/ifmt-bad-arg.rs:86:24
+ --> $DIR/ifmt-bad-arg.rs:86:17
|
LL | println!("{:foo}", 1);
- | ^
+ | ^^^
|
= note: the only appropriate formatting traits are:
- ``, which uses the `Display` trait
--> $DIR/ifmt-bad-arg.rs:78:32
|
LL | println!("{} {:.*} {}", 1, 3.2, 4);
- | ^^^ expected usize, found floating-point number
+ | ^^^ expected `usize`, found floating-point number
|
- = note: expected type `&usize`
- found type `&{float}`
+ = note: expected reference `&usize`
+ found reference `&{float}`
error[E0308]: mismatched types
--> $DIR/ifmt-bad-arg.rs:81:35
|
LL | println!("{} {:07$.*} {}", 1, 3.2, 4);
- | ^^^ expected usize, found floating-point number
+ | ^^^ expected `usize`, found floating-point number
|
- = note: expected type `&usize`
- found type `&{float}`
+ = note: expected reference `&usize`
+ found reference `&{float}`
error: aborting due to 36 previous errors