warning: unused import: `Deserialize` --> tests/uncompilable_serde/deserialize_off.rs | | use serde::{Deserialize, Serialize}; | ^^^^^^^^^^^ | = note: `#[warn(unused_imports)]` on by default error[E0277]: the trait bound `Foo: Deserialize<'_>` is not satisfied --> tests/uncompilable_serde/deserialize_off.rs | | let _json = serde_json::from_str::(r#"{"v": "whatever"}"#); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Deserialize<'_>` is not implemented for `Foo` | = help: the following other types implement trait `Deserialize<'de>`: &'a Path &'a [u8] &'a str () (T0, T1) (T0, T1, T2) (T0, T1, T2, T3) (T0, T1, T2, T3, T4) and $N others note: required by a bound in `serde_json::from_str` --> $CARGO/serde_json-1.0.117/src/de.rs | | pub fn from_str<'a, T>(s: &'a str) -> Result | -------- required by a bound in this function | where | T: de::Deserialize<'a>, | ^^^^^^^^^^^^^^^^^^^ required by this bound in `from_str`