| 1 |
error[E0277]: the trait bound `Foo: Format` is not satisfied |
| 2 |
--> tests/ui/log-missing-format-impl.rs:4:5 |
| 3 |
| |
| 4 |
4 | defmt::info!("{}", Foo) |
| 5 |
| ^^^^^^^^^^^^^^^^^^^^^^^ the trait `Format` is not implemented for `Foo` |
| 6 |
| |
| 7 |
= help: the following other types implement trait `Format`: |
| 8 |
&T |
| 9 |
&mut T |
| 10 |
() |
| 11 |
(T0, T1) |
| 12 |
(T0, T1, T2) |
| 13 |
(T0, T1, T2, T3) |
| 14 |
(T0, T1, T2, T3, T4) |
| 15 |
(T0, T1, T2, T3, T4, T5) |
| 16 |
and $N others |
| 17 |
note: required by a bound in `defmt::export::fmt` |
| 18 |
--> src/export/mod.rs |
| 19 |
| |
| 20 |
| pub fn fmt<T: Format + ?Sized>(f: &T) { |
| 21 |
| ^^^^^^ required by this bound in `fmt` |
| 22 |
= note: this error originates in the macro `defmt::info` (in Nightly builds, run with -Z macro-backtrace for more info) |