Skip to content

Instantly share code, notes, and snippets.

@erincandescent
Created July 24, 2016 22:55
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
#![feature(custom_derive, plugin)]
#![plugin(serde_macros)]
extern crate serde;
extern crate serde_json;
#[derive(Serialize, Deserialize)]
struct S1 {
a: Test,
b: Test
}
#[derive(Serialize, Deserialize)]
enum Test {
V1(Box<S1>),
V2,
V3
}
@erincandescent
Copy link
Author

   Compiling testserde v0.1.0 (file:///C:/Dev/testserde)
lib.rs:6:21: 6:32 error: overflow evaluating the requirement `S1: serde::Deserialize` [E0275]
lib.rs:6 #[derive(Serialize, Deserialize)]
                             ^~~~~~~~~~~
lib.rs:6:21: 6:32 help: run `rustc --explain E0275` to see a detailed explanation
lib.rs:6:21: 6:32 note: required by `serde::Deserialize` 
error: aborting due to previous error 
lib.rs:6:21: 6:32 error: overflow evaluating the requirement `S1: serde::Deserialize` [E0275]
lib.rs:6 #[derive(Serialize, Deserialize)]
                             ^~~~~~~~~~~
lib.rs:6:21: 6:32 help: run `rustc --explain E0275` to see a detailed explanation
lib.rs:6:21: 6:32 note: required by `serde::Deserialize` 
error: aborting due to previous error 
Build failed, waiting for other jobs to finish...
error: Could not compile `testserde`.

To learn more, run the command again with --verbose.
[Finished in 18.4s]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment