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