2018-11-24 15:37:35 -08:00
|
|
|
error[E0308]: mismatched types
|
2021-10-08 02:46:15 -04:00
|
|
|
--> tests/ui/remote/wrong_getter.rs:15:10
|
2019-10-03 21:45:09 -04:00
|
|
|
|
|
|
|
|
15 | #[derive(Serialize)]
|
2022-04-16 23:48:27 -07:00
|
|
|
| ^^^^^^^^^
|
|
|
|
| |
|
|
|
|
| expected `u8`, found `u16`
|
|
|
|
| arguments to this function are incorrect
|
2019-10-03 21:45:09 -04:00
|
|
|
|
|
2019-11-25 23:51:43 -08:00
|
|
|
= note: expected reference `&u8`
|
|
|
|
found reference `&u16`
|
2022-04-16 23:48:27 -07:00
|
|
|
note: function defined here
|
|
|
|
--> $WORKSPACE/serde/src/private/ser.rs
|
|
|
|
|
|
|
|
|
| pub fn constrain<T: ?Sized>(t: &T) -> &T {
|
|
|
|
| ^^^^^^^^^
|
2021-05-13 19:16:07 -07:00
|
|
|
= note: this error originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info)
|