• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1error[E0308]: mismatched types
2  --> tests/ui/remote/wrong_getter.rs:15:10
3   |
415 | #[derive(Serialize)]
5   |          ^^^^^^^^^
6   |          |
7   |          expected `&u8`, found `&u16`
8   |          arguments to this function are incorrect
9   |
10   = note: expected reference `&u8`
11              found reference `&u16`
12note: function defined here
13  --> $WORKSPACE/serde/src/private/ser.rs
14   |
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)
18