mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-04-22 18:27:54 +00:00
Switch ui tests to trybuild
This commit is contained in:
@@ -3,6 +3,3 @@ error: failed to parse path: "~~~"
|
||||
|
|
||||
12 | #[serde(getter = "~~~")]
|
||||
| ^^^^^
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
||||
@@ -3,6 +3,3 @@ error: failed to parse path: "~~~"
|
||||
|
|
||||
10 | #[serde(remote = "~~~")]
|
||||
| ^^^^^
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
||||
@@ -9,6 +9,3 @@ error: #[serde(getter = "...")] is not allowed in an enum
|
||||
15 | | },
|
||||
16 | | }
|
||||
| |_^
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
||||
@@ -4,6 +4,4 @@ error[E0063]: missing field `b` in initializer of `remote::S`
|
||||
11 | #[serde(remote = "remote::S")]
|
||||
| ^^^^^^^^^^^ missing `b`
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
For more information about this error, try `rustc --explain E0063`.
|
||||
|
||||
@@ -6,6 +6,3 @@ error: #[serde(getter = "...")] can only be used in structs that have #[serde(re
|
||||
6 | | a: u8,
|
||||
7 | | }
|
||||
| |_^
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
||||
@@ -10,7 +10,5 @@ error[E0560]: struct `remote::S` has no field named `b`
|
||||
12 | b: u8,
|
||||
| ^ help: a field with a similar name exists: `a`
|
||||
|
||||
error: aborting due to 2 previous errors
|
||||
|
||||
Some errors have detailed explanations: E0560, E0609.
|
||||
For more information about an error, try `rustc --explain E0560`.
|
||||
|
||||
@@ -3,11 +3,5 @@ error[E0308]: mismatched types
|
||||
|
|
||||
7 | #[derive(Deserialize)]
|
||||
| ^^^^^^^^^^^ expected u16, found u8
|
||||
help: you can cast an `u8` to `u16`, which will zero-extend the source value
|
||||
|
|
||||
7 | #[derive(Deserialize.into())]
|
||||
| ^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
For more information about this error, try `rustc --explain E0308`.
|
||||
|
||||
@@ -7,6 +7,4 @@ error[E0308]: mismatched types
|
||||
= note: expected type `&u8`
|
||||
found type `&u16`
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
For more information about this error, try `rustc --explain E0308`.
|
||||
|
||||
@@ -7,6 +7,4 @@ error[E0308]: mismatched types
|
||||
= note: expected type `&u8`
|
||||
found type `&u16`
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
For more information about this error, try `rustc --explain E0308`.
|
||||
|
||||
Reference in New Issue
Block a user