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