2020-09-02 02:40:56 -05:00
error[E0277]: the trait bound `str: UpperHex` is not satisfied
2018-12-25 09:56:47 -06:00
--> $DIR/ifmt-unimpl.rs:2:21
2018-08-08 07:28:26 -05:00
|
LL | format!("{:X}", "3");
2020-09-02 02:40:56 -05:00
| ^^^ the trait `UpperHex` is not implemented for `str`
2018-08-08 07:28:26 -05:00
|
2021-12-13 14:56:40 -06:00
= help: the following other types implement trait `UpperHex`:
&T
&mut T
NonZeroI128
NonZeroI16
NonZeroI32
NonZeroI64
NonZeroI8
NonZeroIsize
and 21 others
2022-08-15 15:31:37 -05:00
= note: required for `&str` to implement `UpperHex`
2022-09-08 05:45:17 -05:00
note: required by a bound in `core::fmt::ArgumentV1::<'a>::new_upper_hex`
2021-10-17 18:41:57 -05:00
--> $SRC_DIR/core/src/fmt/mod.rs:LL:COL
2022-06-20 21:25:52 -05:00
= note: this error originates in the macro `$crate::__export::format_args` which comes from the expansion of the macro `arg_new` (in Nightly builds, run with -Z macro-backtrace for more info)
2018-08-08 07:28:26 -05:00
error: aborting due to previous error
For more information about this error, try `rustc --explain E0277`.