blob: 9041e261c605ac2efe548501491d690da1d17d6c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
error[E0277]: `()` doesn't implement `std::fmt::Display`
--> tests/ui/deserialize_from_str_error_not_display.rs:6:7
|
6 | #[nix(from_str)]
| ^^^^^^^^ `()` cannot be formatted with the default formatter
|
= help: the trait `std::fmt::Display` is not implemented for `()`
= note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead
note: required by a bound in `invalid_data`
--> $WORKSPACE/nix-compat/src/wire/de/mod.rs
|
| fn invalid_data<T: fmt::Display>(msg: T) -> Self {
| ^^^^^^^^^^^^ required by this bound in `Error::invalid_data`
|