2018-11-24 17:37:35 -06:00
|
|
|
error[E0308]: mismatched types
|
2022-10-05 00:28:38 -05:00
|
|
|
--> tests/ui/remote/wrong_ser.rs:9:10
|
|
|
|
|
|
|
|
|
9 | #[derive(Serialize)]
|
|
|
|
| ^^^^^^^^^
|
|
|
|
| |
|
2023-01-31 21:19:53 -06:00
|
|
|
| expected `&u8`, found `&u16`
|
2022-10-05 00:28:38 -05:00
|
|
|
| arguments to this function are incorrect
|
|
|
|
|
|
|
|
|
= note: expected reference `&u8`
|
|
|
|
found reference `&u16`
|
2022-04-17 01:48:27 -05:00
|
|
|
note: function defined here
|
2022-10-05 00:28:38 -05:00
|
|
|
--> $WORKSPACE/serde/src/private/ser.rs
|
|
|
|
|
|
|
|
|
| pub fn constrain<T: ?Sized>(t: &T) -> &T {
|
|
|
|
| ^^^^^^^^^
|
|
|
|
= note: this error originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info)
|