Skip to content
Myr

wrong_ser.stderr

This file

Path

test_suite/tests/ui/remote/wrong_ser.stderr

17 lines · 576 bytes

Last changed by

Not known.

History of this file

Take it

1error[E0308]: mismatched types2 --> tests/ui/remote/wrong_ser.rs:9:103  |49 | #[derive(Serialize)]5  |          ^^^^^^^^^6  |          |7  |          expected `&u8`, found `&u16`8  |          arguments to this function are incorrect9  |10  = note: expected reference `&u8`11             found reference `&u16`12note: function defined here13 --> $WORKSPACE/serde/src/private/ser.rs14  |15  | pub fn constrain<T: ?Sized>(t: &T) -> &T {16  |        ^^^^^^^^^17  = note: this error originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info)