forked from serde-rs/serde
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
16 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
error[E0308]: mismatched types | ||
--> 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` | ||
--> 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: ?Sized>(t: &T) -> &T { | ||
| ^^^^^^^^^ | ||
= note: this error originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) | ||
--> $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) |