Created
January 18, 2020 00:15
-
-
Save leocavalcante/02721d3ebd44dba0bacb46e4f66af0f8 to your computer and use it in GitHub Desktop.
This file contains 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
error[E0277]: `*mut (dyn std::ops::Fn() + 'static)` cannot be shared between threads safely | |
--> src\bin\main.rs:15:10 | |
| | |
15 | .and_then(backend::controllers::dev::store) | |
| ^^^^^^^^ `*mut (dyn std::ops::Fn() + 'static)` cannot be shared between threads safely | |
| | |
= help: within `core::fmt::Void`, the trait `std::marker::Sync` is not implemented for `*mut (dyn std::ops::Fn() + 'static)` | |
= note: required because it appears within the type `std::marker::PhantomData<*mut (dyn std::ops::Fn() + 'static)>` | |
= note: required because it appears within the type `core::fmt::Void` | |
= note: required because of the requirements on the impl of `std::marker::Send` for `&core::fmt::Void` | |
= note: required because it appears within the type `std::fmt::ArgumentV1<'_>` | |
= note: required because it appears within the type `[std::fmt::ArgumentV1<'_>; 1]` | |
= note: required because it appears within the type `for<'r, 's, 't0, 't1, 't2, 't3, 't4, 't5, 't6, 't7, 't8, 't9, 't10, 't11, 't12, 't13, 't14, 't15, 't16> {backend::application::Dev | |
Request, diesel::pg::connection::PgConnection, &'r reqwest::async_impl::client::Client, reqwest::async_impl::client::Client, &'s str, &'t0 str, [&'t1 str; 1], &'t2 [&'t3 str], &'t4 [&'t5 | |
str; 1], backend::application::DevRequest, std::string::String, &'t6 std::string::String, (&'t7 std::string::String,), [std::fmt::ArgumentV1<'t8>; 1], &'t9 [std::fmt::ArgumentV1<'t10>], | |
&'t11 [std::fmt::ArgumentV1<'t12>; 1], std::fmt::Arguments<'t13>, &'t14 std::string::String, std::string::String, &'t15 str, reqwest::async_impl::request::RequestBuilder, http::header:: | |
name::HeaderName, &'t16 str, reqwest::async_impl::request::RequestBuilder, impl core::future::future::Future, impl core::future::future::Future, (), std::result::Result<reqwest::async_im | |
pl::response::Response, reqwest::error::Error>, reqwest::async_impl::response::Response, impl core::future::future::Future, impl core::future::future::Future, ()}` | |
= note: required because it appears within the type `[static generator@DefId(125:49 ~ backend[c10f]::controllers[0]::dev[0]::store[0]::{{closure}}[0]) 0:backend::application::DevReque | |
st for<'r, 's, 't0, 't1, 't2, 't3, 't4, 't5, 't6, 't7, 't8, 't9, 't10, 't11, 't12, 't13, 't14, 't15, 't16> {backend::application::DevRequest, diesel::pg::connection::PgConnection, &'r re | |
qwest::async_impl::client::Client, reqwest::async_impl::client::Client, &'s str, &'t0 str, [&'t1 str; 1], &'t2 [&'t3 str], &'t4 [&'t5 str; 1], backend::application::DevRequest, std::stri | |
ng::String, &'t6 std::string::String, (&'t7 std::string::String,), [std::fmt::ArgumentV1<'t8>; 1], &'t9 [std::fmt::ArgumentV1<'t10>], &'t11 [std::fmt::ArgumentV1<'t12>; 1], std::fmt::Arg | |
uments<'t13>, &'t14 std::string::String, std::string::String, &'t15 str, reqwest::async_impl::request::RequestBuilder, http::header::name::HeaderName, &'t16 str, reqwest::async_impl::req | |
uest::RequestBuilder, impl core::future::future::Future, impl core::future::future::Future, (), std::result::Result<reqwest::async_impl::response::Response, reqwest::error::Error>, reqwe | |
st::async_impl::response::Response, impl core::future::future::Future, impl core::future::future::Future, ()}]` | |
= note: required because it appears within the type `std::future::GenFuture<[static generator@DefId(125:49 ~ backend[c10f]::controllers[0]::dev[0]::store[0]::{{closure}}[0]) 0:backend | |
::application::DevRequest for<'r, 's, 't0, 't1, 't2, 't3, 't4, 't5, 't6, 't7, 't8, 't9, 't10, 't11, 't12, 't13, 't14, 't15, 't16> {backend::application::DevRequest, diesel::pg::connectio | |
n::PgConnection, &'r reqwest::async_impl::client::Client, reqwest::async_impl::client::Client, &'s str, &'t0 str, [&'t1 str; 1], &'t2 [&'t3 str], &'t4 [&'t5 str; 1], backend::application | |
::DevRequest, std::string::String, &'t6 std::string::String, (&'t7 std::string::String,), [std::fmt::ArgumentV1<'t8>; 1], &'t9 [std::fmt::ArgumentV1<'t10>], &'t11 [std::fmt::ArgumentV1<' | |
t12>; 1], std::fmt::Arguments<'t13>, &'t14 std::string::String, std::string::String, &'t15 str, reqwest::async_impl::request::RequestBuilder, http::header::name::HeaderName, &'t16 str, r | |
eqwest::async_impl::request::RequestBuilder, impl core::future::future::Future, impl core::future::future::Future, (), std::result::Result<reqwest::async_impl::response::Response, reqwes | |
t::error::Error>, reqwest::async_impl::response::Response, impl core::future::future::Future, impl core::future::future::Future, ()}]>` | |
= note: required because it appears within the type `impl core::future::future::Future` | |
= note: required because it appears within the type `impl core::future::future::Future` | |
error: aborting due to previous error | |
For more information about this error, try `rustc --explain E0277`. | |
error: could not compile `backend`. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment