]> git.lizzy.rs Git - rust.git/blob - tests/ui/fmt/ifmt-unimpl.stderr
Rollup merge of #107172 - cjgillot:no-nal, r=nagisa
[rust.git] / tests / 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 for `&str` to implement `UpperHex`
18 note: required by a bound in `core::fmt::ArgumentV1::<'a>::new_upper_hex`
19   --> $SRC_DIR/core/src/fmt/mod.rs:LL:COL
20    = 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)
21
22 error: aborting due to previous error
23
24 For more information about this error, try `rustc --explain E0277`.