mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-11-28 08:50:03 +00:00
Improve overall quality of compile_error! errors
Also updates UI tests.
This commit is contained in:
1 parent
8f3f073017
commit
034db9f20f
69 files changed
+714
-429
No files matched your search
@@ -1,8 +1,9 @@
|
||||
error: #[serde(flatten] can not be combined with #[serde(skip_serializing_if = "...")]
|
||||
--> $DIR/flatten-skip-serializing-if.rs:4:10
|
||||
error: #[serde(flatten)] can not be combined with #[serde(skip_serializing_if = "...")]
|
||||
--> $DIR/flatten-skip-serializing-if.rs:6:5
|
||||
|
|
||||
4 | #[derive(Serialize)]
|
||||
| ^^^^^^^^^
|
||||
6 | / #[serde(flatten, skip_serializing_if = "Option::is_none")]
|
||||
7 | | other: Option<Other>,
|
||||
| |________________________^
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
Reference in new issue
Block a user