]> git.lizzy.rs Git - rust.git/blob - src/test/ui/fmt/ifmt-unimpl.stderr
Auto merge of #96016 - Aaron1011:hash-name-cleanup, r=cjgillot
[rust.git] / src / test / ui / fmt / ifmt-unimpl.stderr
1 error[E0277]: the trait bound `str: UpperHex` is not satisfied
2   --> $DIR/ifmt-unimpl.rs:2:21
3    |
4 LL |     format!("{:X}", "3");
5    |                     ^^^ the trait `UpperHex` is not implemented for `str`
6    |
7    = help: the following other types implement trait `UpperHex`:
8              &T
9              &mut T
10              NonZeroI128
11              NonZeroI16
12              NonZeroI32
13              NonZeroI64
14              NonZeroI8
15              NonZeroIsize
16            and 21 others
17    = note: required because of the requirements on the impl of `UpperHex` for `&str`
18 note: required by a bound in `ArgumentV1::<'a>::new_upper_hex`
19   --> $SRC_DIR/core/src/fmt/mod.rs:LL:COL
20    |
21 LL |     arg_new!(new_upper_hex, UpperHex);
22    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `ArgumentV1::<'a>::new_upper_hex`
23    = note: this error originates in the macro `$crate::__export::format_args` (in Nightly builds, run with -Z macro-backtrace for more info)
24
25 error: aborting due to previous error
26
27 For more information about this error, try `rustc --explain E0277`.