2018-08-08 14:28:26 +02:00
|
|
|
error[E0277]: `dummy::TestType` cannot be sent between threads safely
|
2019-09-15 21:58:20 -07:00
|
|
|
--> $DIR/traits-negative-impls.rs:23:11
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2019-08-24 14:44:43 -07:00
|
|
|
LL | struct Outer<T: Send>(T);
|
|
|
|
| ------------------------- required by `Outer`
|
|
|
|
...
|
2018-08-08 14:28:26 +02:00
|
|
|
LL | Outer(TestType);
|
2019-09-15 21:58:20 -07:00
|
|
|
| ^^^^^^^^ `dummy::TestType` cannot be sent between threads safely
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
|
= help: the trait `std::marker::Send` is not implemented for `dummy::TestType`
|
|
|
|
|
|
|
|
error[E0277]: `dummy::TestType` cannot be sent between threads safely
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/traits-negative-impls.rs:23:5
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2019-08-24 14:44:43 -07:00
|
|
|
LL | struct Outer<T: Send>(T);
|
|
|
|
| ------------------------- required by `Outer`
|
|
|
|
...
|
2018-08-08 14:28:26 +02:00
|
|
|
LL | Outer(TestType);
|
|
|
|
| ^^^^^^^^^^^^^^^ `dummy::TestType` cannot be sent between threads safely
|
|
|
|
|
|
|
|
|
= help: the trait `std::marker::Send` is not implemented for `dummy::TestType`
|
|
|
|
|
|
|
|
error[E0277]: `dummy1b::TestType` cannot be sent between threads safely
|
2019-09-15 21:58:20 -07:00
|
|
|
--> $DIR/traits-negative-impls.rs:32:13
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2019-08-24 14:44:43 -07:00
|
|
|
LL | fn is_send<T: Send>(_: T) {}
|
2019-09-04 10:17:59 -07:00
|
|
|
| ------- ---- required by this bound in `is_send`
|
2019-08-24 14:44:43 -07:00
|
|
|
...
|
2018-08-08 14:28:26 +02:00
|
|
|
LL | is_send(TestType);
|
2019-09-15 21:58:20 -07:00
|
|
|
| ^^^^^^^^ `dummy1b::TestType` cannot be sent between threads safely
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
|
= help: the trait `std::marker::Send` is not implemented for `dummy1b::TestType`
|
|
|
|
|
|
|
|
error[E0277]: `dummy1c::TestType` cannot be sent between threads safely
|
2019-09-15 21:58:20 -07:00
|
|
|
--> $DIR/traits-negative-impls.rs:40:13
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2019-08-24 14:44:43 -07:00
|
|
|
LL | fn is_send<T: Send>(_: T) {}
|
2019-09-04 10:17:59 -07:00
|
|
|
| ------- ---- required by this bound in `is_send`
|
2019-08-24 14:44:43 -07:00
|
|
|
...
|
2018-08-08 14:28:26 +02:00
|
|
|
LL | is_send((8, TestType));
|
2019-09-15 21:58:20 -07:00
|
|
|
| ^^^^^^^^^^^^^ `dummy1c::TestType` cannot be sent between threads safely
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
|
= help: within `({integer}, dummy1c::TestType)`, the trait `std::marker::Send` is not implemented for `dummy1c::TestType`
|
|
|
|
= note: required because it appears within the type `({integer}, dummy1c::TestType)`
|
|
|
|
|
|
|
|
error[E0277]: `dummy2::TestType` cannot be sent between threads safely
|
2019-09-15 21:58:20 -07:00
|
|
|
--> $DIR/traits-negative-impls.rs:48:13
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2019-08-24 14:44:43 -07:00
|
|
|
LL | fn is_send<T: Send>(_: T) {}
|
2019-09-04 10:17:59 -07:00
|
|
|
| ------- ---- required by this bound in `is_send`
|
2019-08-24 14:44:43 -07:00
|
|
|
...
|
2018-08-08 14:28:26 +02:00
|
|
|
LL | is_send(Box::new(TestType));
|
2019-09-15 21:58:20 -07:00
|
|
|
| ^^^^^^^^^^^^^^^^^^ `dummy2::TestType` cannot be sent between threads safely
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
|
= help: the trait `std::marker::Send` is not implemented for `dummy2::TestType`
|
|
|
|
= note: required because of the requirements on the impl of `std::marker::Send` for `std::ptr::Unique<dummy2::TestType>`
|
|
|
|
= note: required because it appears within the type `std::boxed::Box<dummy2::TestType>`
|
|
|
|
|
|
|
|
error[E0277]: `dummy3::TestType` cannot be sent between threads safely
|
2019-09-15 21:58:20 -07:00
|
|
|
--> $DIR/traits-negative-impls.rs:56:13
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2019-08-24 14:44:43 -07:00
|
|
|
LL | fn is_send<T: Send>(_: T) {}
|
2019-09-04 10:17:59 -07:00
|
|
|
| ------- ---- required by this bound in `is_send`
|
2019-08-24 14:44:43 -07:00
|
|
|
...
|
2018-08-08 14:28:26 +02:00
|
|
|
LL | is_send(Box::new(Outer2(TestType)));
|
2019-09-15 21:58:20 -07:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ `dummy3::TestType` cannot be sent between threads safely
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
|
= help: within `Outer2<dummy3::TestType>`, the trait `std::marker::Send` is not implemented for `dummy3::TestType`
|
|
|
|
= note: required because it appears within the type `Outer2<dummy3::TestType>`
|
|
|
|
= note: required because of the requirements on the impl of `std::marker::Send` for `std::ptr::Unique<Outer2<dummy3::TestType>>`
|
|
|
|
= note: required because it appears within the type `std::boxed::Box<Outer2<dummy3::TestType>>`
|
|
|
|
|
|
|
|
error[E0277]: `main::TestType` cannot be sent between threads safely
|
2019-09-15 21:58:20 -07:00
|
|
|
--> $DIR/traits-negative-impls.rs:66:13
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2019-08-24 14:44:43 -07:00
|
|
|
LL | fn is_sync<T: Sync>(_: T) {}
|
2019-09-04 10:17:59 -07:00
|
|
|
| ------- ---- required by this bound in `is_sync`
|
2019-08-24 14:44:43 -07:00
|
|
|
...
|
2018-08-08 14:28:26 +02:00
|
|
|
LL | is_sync(Outer2(TestType));
|
2019-09-15 21:58:20 -07:00
|
|
|
| ^^^^^^^^^^^^^^^^ `main::TestType` cannot be sent between threads safely
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
|
= help: the trait `std::marker::Send` is not implemented for `main::TestType`
|
|
|
|
= note: required because of the requirements on the impl of `std::marker::Sync` for `Outer2<main::TestType>`
|
|
|
|
|
|
|
|
error: aborting due to 7 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|