| 1 |
warning: unused import: `displaydoc::Display` |
| 2 |
--> $DIR/without.rs:20:5 |
| 3 |
| |
| 4 |
20 | use displaydoc::Display; |
| 5 |
| ^^^^^^^^^^^^^^^^^^^ |
| 6 |
| |
| 7 |
= note: `#[warn(unused_imports)]` on by default |
| 8 |
|
| 9 |
error[E0277]: `FakeType` doesn't implement `std::fmt::Display` |
| 10 |
--> $DIR/without.rs:25:37 |
| 11 |
| |
| 12 |
25 | static_assertions::assert_impl_all!(FakeType: core::fmt::Display); |
| 13 |
| ^^^^^^^^ `FakeType` cannot be formatted with the default formatter |
| 14 |
| |
| 15 |
= help: the trait `std::fmt::Display` is not implemented for `FakeType` |
| 16 |
= note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead |
| 17 |
note: required by a bound in `assert_impl_all` |
| 18 |
--> $DIR/without.rs:25:1 |
| 19 |
| |
| 20 |
25 | static_assertions::assert_impl_all!(FakeType: core::fmt::Display); |
| 21 |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `assert_impl_all` |
| 22 |
= note: this error originates in the macro `static_assertions::assert_impl_all` (in Nightly builds, run with -Z macro-backtrace for more info) |