Created
December 2, 2016 12:15
-
-
Save goyox86/f79360a91676c750b0b28328470c321c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cargo build --release | |
Compiling rust-iron v0.0.1 (file:///Users/goyox86/Code/zendesk/zodiac-ingest-framework-benchmarks/rust-iron) | |
error[E0525]: expected a closure that implements the `Fn` trait, but this closure only implements `FnOnce` | |
--> src/main.rs:33:19 | |
| | |
33 | let handler = move |request: &mut Request| { | |
| ^ | |
| | |
note: the requirement to implement `Fn` derives from here | |
--> src/main.rs:50:12 | |
| | |
50 | router.post("/event", handler, "validate"); | |
| ^^^^ | |
error[E0277]: the trait bound `std::rc::Rc<valico::json_schema::keywords::KeywordConsumer>: std::marker::Sync` is not satisfied | |
--> src/main.rs:50:12 | |
| | |
50 | router.post("/event", handler, "validate"); | |
| ^^^^ the trait `std::marker::Sync` is not implemented for `std::rc::Rc<valico::json_schema::keywords::KeywordConsumer>` | |
| | |
= note: `std::rc::Rc<valico::json_schema::keywords::KeywordConsumer>` cannot be shared between threads safely | |
= note: required because of the requirements on the impl of `std::marker::Sync` for `std::collections::hash::table::RawTable<&'static str, std::rc::Rc<valic | |
o::json_schema::keywords::KeywordConsumer>>` | |
= note: required because it appears within the type `std::collections::HashMap<&'static str, std::rc::Rc<valico::json_schema::keywords::KeywordConsumer>>` | |
= note: required because it appears within the type `valico::json_schema::Scope` | |
= note: required because of the requirements on the impl of `std::marker::Send` for `&valico::json_schema::Scope` | |
= note: required because it appears within the type `valico::json_schema::schema::ScopedSchema<'_>` | |
= note: required because of the requirements on the impl of `std::marker::Send` for `std::sync::Mutex<valico::json_schema::schema::ScopedSchema<'_>>` | |
= note: required because of the requirements on the impl of `std::marker::Send` for `std::sync::Arc<std::sync::Mutex<valico::json_schema::schema::ScopedSche | |
ma<'_>>>` | |
= note: required because it appears within the type `[closure@src/main.rs:33:19: 46:6 schema:std::sync::Arc<std::sync::Mutex<valico::json_schema::schema::Sc | |
opedSchema<'_>>>]` | |
= note: required because of the requirements on the impl of `iron::Handler` for `[closure@src/main.rs:33:19: 46:6 schema:std::sync::Arc<std::sync::Mutex<val | |
ico::json_schema::schema::ScopedSchema<'_>>>]` | |
error: aborting due to 2 previous errors | |
error: Could not compile `rust-iron`. | |
To learn more, run the command again with --verbose. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment