Improve error message parsing from and into

This commit is contained in:
David Tolnay committed 2017-03-18 09:22:44 -07:00
1 parent bc946e4fd7
commit 42b2fd8eec
3 files changed
+10 -22

No files matched your search

@@ -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,
@@ -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,