
``` error[E0610]: `{integer}` is a primitive type and therefore doesn't have fields --> $DIR/attempted-access-non-fatal.rs:7:15 | LL | let _ = 2.l; | ^ | help: if intended to be a floating point literal, consider adding a `0` after the period and a `f64` suffix | LL - let _ = 2.l; LL + let _ = 2.0f64; | ```
38 lines
951 B
Text
38 lines
951 B
Text
error: invalid format string: expected `}`, found `#`
|
|
--> $DIR/suggest-wrongly-order-format-parameter.rs:14:19
|
|
|
|
|
LL | println!("{f:?#}");
|
|
| ^ expected `'}'` in format string
|
|
|
|
|
help: did you mean `#?`?
|
|
|
|
|
LL - println!("{f:?#}");
|
|
LL + println!("{f:#?}");
|
|
|
|
|
|
|
error: invalid format string: expected `}`, found `x`
|
|
--> $DIR/suggest-wrongly-order-format-parameter.rs:18:19
|
|
|
|
|
LL | println!("{f:?x}");
|
|
| ^ expected `'}'` in format string
|
|
|
|
|
help: did you mean `x?`?
|
|
|
|
|
LL - println!("{f:?x}");
|
|
LL + println!("{f:x?}");
|
|
|
|
|
|
|
error: invalid format string: expected `}`, found `X`
|
|
--> $DIR/suggest-wrongly-order-format-parameter.rs:22:19
|
|
|
|
|
LL | println!("{f:?X}");
|
|
| ^ expected `'}'` in format string
|
|
|
|
|
help: did you mean `X?`?
|
|
|
|
|
LL - println!("{f:?X}");
|
|
LL + println!("{f:X?}");
|
|
|
|
|
|
|
error: aborting due to 3 previous errors
|
|
|