rust/tests/ui/fmt/ifmt-unimpl.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

25 lines
960 B
Plaintext
Raw Normal View History

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");
| ^^^ the trait `UpperHex` is not implemented for `str`
2018-08-08 07:28:26 -05:00
|
= help: the following other types implement trait `UpperHex`:
&T
&mut T
NonZeroI128
NonZeroI16
NonZeroI32
NonZeroI64
NonZeroI8
NonZeroIsize
and 21 others
= 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`
--> $SRC_DIR/core/src/fmt/mod.rs:LL:COL
= 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`.