rust/tests/ui/traits/suggest-remove-deref-issue-...

23 lines
930 B
Plaintext

error[E0277]: the trait bound `&Chars: Trait` is not satisfied
--> $DIR/suggest-remove-deref-issue-140166.rs:14:26
|
LL | format_args!("{:?}", FlatMap(&Chars));
| ---- ^^^^^^^^^^^^^^^ the trait `Trait` is not implemented for `&Chars`
| |
| required by a bound introduced by this call
|
= help: the trait `Trait` is implemented for `Chars`
note: required for `FlatMap<&Chars>` to implement `Debug`
--> $DIR/suggest-remove-deref-issue-140166.rs:7:16
|
LL | impl<T: Trait> std::fmt::Debug for FlatMap<T> {
| ----- ^^^^^^^^^^^^^^^ ^^^^^^^^^^
| |
| unsatisfied trait bound introduced here
note: required by a bound in `core::fmt::rt::Argument::<'_>::new_debug`
--> $SRC_DIR/core/src/fmt/rt.rs:LL:COL
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0277`.