diff --git a/test_suite/tests/ui/remote/wrong_de.stderr b/test_suite/tests/ui/remote/wrong_de.stderr index 41bdbb33..314f2b39 100644 --- a/test_suite/tests/ui/remote/wrong_de.stderr +++ b/test_suite/tests/ui/remote/wrong_de.stderr @@ -3,7 +3,14 @@ error[E0308]: mismatched types | 7 | #[derive(Deserialize)] | ^^^^^^^^^^^ expected `u16`, found `u8` +8 | #[serde(remote = "remote::S")] + | ----------- arguments to this struct are incorrect | +note: tuple struct defined here + --> tests/ui/remote/wrong_de.rs:4:16 + | +4 | pub struct S(pub u16); + | ^ = note: this error originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) help: you can convert a `u8` to a `u16` | diff --git a/test_suite/tests/ui/remote/wrong_getter.stderr b/test_suite/tests/ui/remote/wrong_getter.stderr index a7b226ec..694741e6 100644 --- a/test_suite/tests/ui/remote/wrong_getter.stderr +++ b/test_suite/tests/ui/remote/wrong_getter.stderr @@ -2,8 +2,16 @@ error[E0308]: mismatched types --> tests/ui/remote/wrong_getter.rs:15:10 | 15 | #[derive(Serialize)] - | ^^^^^^^^^ expected `u8`, found `u16` + | ^^^^^^^^^ + | | + | expected `u8`, found `u16` + | arguments to this function are incorrect | = note: expected reference `&u8` found reference `&u16` +note: function defined here + --> $WORKSPACE/serde/src/private/ser.rs + | + | pub fn constrain(t: &T) -> &T { + | ^^^^^^^^^ = note: this error originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) diff --git a/test_suite/tests/ui/remote/wrong_ser.stderr b/test_suite/tests/ui/remote/wrong_ser.stderr index d45731cd..d7584cdf 100644 --- a/test_suite/tests/ui/remote/wrong_ser.stderr +++ b/test_suite/tests/ui/remote/wrong_ser.stderr @@ -1,9 +1,17 @@ error[E0308]: mismatched types - --> tests/ui/remote/wrong_ser.rs:9:10 - | -9 | #[derive(Serialize)] - | ^^^^^^^^^ expected `u8`, found `u16` - | - = note: expected reference `&u8` - found reference `&u16` - = note: this error originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) + --> tests/ui/remote/wrong_ser.rs:9:10 + | +9 | #[derive(Serialize)] + | ^^^^^^^^^ + | | + | expected `u8`, found `u16` + | arguments to this function are incorrect + | + = note: expected reference `&u8` + found reference `&u16` +note: function defined here + --> $WORKSPACE/serde/src/private/ser.rs + | + | pub fn constrain(t: &T) -> &T { + | ^^^^^^^^^ + = note: this error originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info)