diff options
Diffstat (limited to 'src/test/ui/fmt/ifmt-unimpl.stderr')
| -rw-r--r-- | src/test/ui/fmt/ifmt-unimpl.stderr | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/test/ui/fmt/ifmt-unimpl.stderr b/src/test/ui/fmt/ifmt-unimpl.stderr new file mode 100644 index 00000000000..65b0f4a09b3 --- /dev/null +++ b/src/test/ui/fmt/ifmt-unimpl.stderr @@ -0,0 +1,13 @@ +error[E0277]: the trait bound `str: UpperHex` is not satisfied + --> $DIR/ifmt-unimpl.rs:2:21 + | +LL | format!("{:X}", "3"); + | ^^^ the trait `UpperHex` is not implemented for `str` + | + = note: required because of the requirements on the impl of `UpperHex` for `&str` + = note: required by `std::fmt::UpperHex::fmt` + = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) + +error: aborting due to previous error + +For more information about this error, try `rustc --explain E0277`. |
