mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-04-23 01:18:02 +00:00
Improve error message parsing from and into
This commit is contained in:
+1
-1
@@ -2,7 +2,7 @@
|
||||
extern crate serde_derive;
|
||||
|
||||
#[derive(Deserialize)] //~ ERROR: proc-macro derive panicked
|
||||
#[serde(from="")]
|
||||
#[serde(from = "Option<T")] //~^ HELP: failed to parse type: from = "Option<T"
|
||||
enum TestOne {
|
||||
Testing,
|
||||
One,
|
||||
+1
-1
@@ -2,7 +2,7 @@
|
||||
extern crate serde_derive;
|
||||
|
||||
#[derive(Serialize)] //~ ERROR: proc-macro derive panicked
|
||||
#[serde(into="")]
|
||||
#[serde(into = "Option<T")] //~^ HELP: failed to parse type: into = "Option<T"
|
||||
enum TestOne {
|
||||
Testing,
|
||||
One,
|
||||
Reference in New Issue
Block a user