serde/test_suite/tests/ui/remote/wrong_de.stderr

19 lines
628 B
Plaintext
Raw Normal View History

error[E0308]: mismatched types
2021-10-08 01:46:15 -05:00
--> tests/ui/remote/wrong_de.rs:7:10
|
2018-12-31 20:36:59 -06:00
7 | #[derive(Deserialize)]
| ^^^^^^^^^^^ expected `u16`, found `u8`
8 | #[serde(remote = "remote::S")]
| ----------- arguments to this struct are incorrect
2020-02-08 02:10:00 -06:00
|
note: tuple struct defined here
--> tests/ui/remote/wrong_de.rs:4:16
|
4 | pub struct S(pub u16);
| ^
= note: this error originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info)
help: you can convert a `u8` to a `u16`
|
7 | #[derive(Deserialize.into())]
| +++++++