about summary refs log blame commit diff
path: root/tvix/nix-compat-derive-tests/tests/ui/deserialize_from_str_error_not_display.stderr
blob: 8283ed5340f3f6c7205be4a7a27191cc514f0e8c (plain) (tree)
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/nix_daemon/de/mod.rs
  |
  |     fn invalid_data<T: fmt::Display>(msg: T) -> Self {
  |                        ^^^^^^^^^^^^ required by this bound in `Error::invalid_data`