2018-08-08 12:28:26 +00:00
|
|
|
error[E0277]: `dummy::TestType` cannot be sent between threads safely
|
2020-01-08 11:39:38 +00:00
|
|
|
--> $DIR/negated-auto-traits-error.rs:23:11
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
|
LL | Outer(TestType);
|
2021-09-07 11:30:53 +00:00
|
|
|
| ----- ^^^^^^^^ `dummy::TestType` cannot be sent between threads safely
|
|
|
|
| |
|
|
|
|
| required by a bound introduced by this call
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2020-09-02 07:40:56 +00:00
|
|
|
= help: the trait `Send` is not implemented for `dummy::TestType`
|
2021-10-05 23:04:09 +00:00
|
|
|
note: required by a bound in `Outer`
|
|
|
|
--> $DIR/negated-auto-traits-error.rs:10:17
|
2021-07-17 18:13:50 +00:00
|
|
|
|
|
|
|
|
LL | struct Outer<T: Send>(T);
|
2021-10-05 23:04:09 +00:00
|
|
|
| ^^^^ required by this bound in `Outer`
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
error[E0277]: `dummy::TestType` cannot be sent between threads safely
|
2020-01-08 11:39:38 +00:00
|
|
|
--> $DIR/negated-auto-traits-error.rs:23:5
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
|
LL | Outer(TestType);
|
|
|
|
| ^^^^^^^^^^^^^^^ `dummy::TestType` cannot be sent between threads safely
|
|
|
|
|
|
2020-09-02 07:40:56 +00:00
|
|
|
= help: the trait `Send` is not implemented for `dummy::TestType`
|
2021-07-31 16:26:55 +00:00
|
|
|
note: required by a bound in `Outer`
|
|
|
|
--> $DIR/negated-auto-traits-error.rs:10:17
|
|
|
|
|
|
|
|
|
LL | struct Outer<T: Send>(T);
|
|
|
|
| ^^^^ required by this bound in `Outer`
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
error[E0277]: `dummy1b::TestType` cannot be sent between threads safely
|
2020-01-08 11:39:38 +00:00
|
|
|
--> $DIR/negated-auto-traits-error.rs:32:13
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
|
LL | is_send(TestType);
|
2021-09-07 11:30:53 +00:00
|
|
|
| ------- ^^^^^^^^ `dummy1b::TestType` cannot be sent between threads safely
|
|
|
|
| |
|
|
|
|
| required by a bound introduced by this call
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2020-09-02 07:40:56 +00:00
|
|
|
= help: the trait `Send` is not implemented for `dummy1b::TestType`
|
2021-07-31 16:26:55 +00:00
|
|
|
note: required by a bound in `is_send`
|
|
|
|
--> $DIR/negated-auto-traits-error.rs:16:15
|
|
|
|
|
|
|
|
|
LL | fn is_send<T: Send>(_: T) {}
|
|
|
|
| ^^^^ required by this bound in `is_send`
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
error[E0277]: `dummy1c::TestType` cannot be sent between threads safely
|
2020-01-08 11:39:38 +00:00
|
|
|
--> $DIR/negated-auto-traits-error.rs:40:13
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
|
LL | is_send((8, TestType));
|
2021-09-07 11:30:53 +00:00
|
|
|
| ------- ^^^^^^^^^^^^^ `dummy1c::TestType` cannot be sent between threads safely
|
|
|
|
| |
|
|
|
|
| required by a bound introduced by this call
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2021-10-22 20:49:12 +00:00
|
|
|
= help: within `({integer}, dummy1c::TestType)`, the trait `Send` is not implemented for `dummy1c::TestType`
|
2022-12-28 02:56:00 +00:00
|
|
|
= note: required because it appears within the type `({integer}, TestType)`
|
2021-07-31 16:26:55 +00:00
|
|
|
note: required by a bound in `is_send`
|
|
|
|
--> $DIR/negated-auto-traits-error.rs:16:15
|
|
|
|
|
|
|
|
|
LL | fn is_send<T: Send>(_: T) {}
|
|
|
|
| ^^^^ required by this bound in `is_send`
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2019-10-27 20:42:20 +00:00
|
|
|
error[E0277]: `dummy2::TestType` cannot be sent between threads safely
|
2020-01-08 11:39:38 +00:00
|
|
|
--> $DIR/negated-auto-traits-error.rs:48:13
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
|
LL | is_send(Box::new(TestType));
|
2022-08-18 12:16:35 +00:00
|
|
|
| ------- ^^^^^^^^^^^^^^^^^^ the trait `Send` is not implemented for `Unique<dummy2::TestType>`
|
2021-09-26 15:30:39 +00:00
|
|
|
| |
|
2021-09-07 11:30:53 +00:00
|
|
|
| required by a bound introduced by this call
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2021-11-11 23:28:19 +00:00
|
|
|
= note: the trait bound `Unique<dummy2::TestType>: Send` is not satisfied
|
2022-08-15 20:31:37 +00:00
|
|
|
= note: required for `Unique<dummy2::TestType>` to implement `Send`
|
2023-05-03 16:27:29 +00:00
|
|
|
note: required because it appears within the type `Box<TestType>`
|
|
|
|
--> $SRC_DIR/alloc/src/boxed.rs:LL:COL
|
2021-07-31 16:26:55 +00:00
|
|
|
note: required by a bound in `is_send`
|
|
|
|
--> $DIR/negated-auto-traits-error.rs:16:15
|
|
|
|
|
|
|
|
|
LL | fn is_send<T: Send>(_: T) {}
|
|
|
|
| ^^^^ required by this bound in `is_send`
|
2021-09-26 15:30:39 +00:00
|
|
|
help: consider borrowing here
|
|
|
|
|
|
|
|
|
LL | is_send(&Box::new(TestType));
|
|
|
|
| +
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
error[E0277]: `dummy3::TestType` cannot be sent between threads safely
|
2020-01-08 11:39:38 +00:00
|
|
|
--> $DIR/negated-auto-traits-error.rs:56:13
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
|
LL | is_send(Box::new(Outer2(TestType)));
|
2021-09-07 11:30:53 +00:00
|
|
|
| ------- ^^^^^^^^^^^^^^^^^^^^^^^^^^ `dummy3::TestType` cannot be sent between threads safely
|
|
|
|
| |
|
|
|
|
| required by a bound introduced by this call
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2021-10-22 20:49:12 +00:00
|
|
|
= help: within `Outer2<dummy3::TestType>`, the trait `Send` is not implemented for `dummy3::TestType`
|
2022-12-28 02:56:00 +00:00
|
|
|
note: required because it appears within the type `Outer2<TestType>`
|
2021-03-30 20:37:30 +00:00
|
|
|
--> $DIR/negated-auto-traits-error.rs:12:8
|
|
|
|
|
|
|
|
|
LL | struct Outer2<T>(T);
|
|
|
|
| ^^^^^^
|
2022-08-15 20:31:37 +00:00
|
|
|
= note: required for `Unique<Outer2<dummy3::TestType>>` to implement `Send`
|
2023-05-03 16:27:29 +00:00
|
|
|
note: required because it appears within the type `Box<Outer2<TestType>>`
|
|
|
|
--> $SRC_DIR/alloc/src/boxed.rs:LL:COL
|
2021-07-31 16:26:55 +00:00
|
|
|
note: required by a bound in `is_send`
|
|
|
|
--> $DIR/negated-auto-traits-error.rs:16:15
|
|
|
|
|
|
|
|
|
LL | fn is_send<T: Send>(_: T) {}
|
|
|
|
| ^^^^ required by this bound in `is_send`
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2019-10-27 20:42:20 +00:00
|
|
|
error[E0277]: `main::TestType` cannot be sent between threads safely
|
2023-01-04 03:54:11 +00:00
|
|
|
--> $DIR/negated-auto-traits-error.rs:66:20
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
|
LL | is_sync(Outer2(TestType));
|
2023-01-04 03:54:11 +00:00
|
|
|
| ------- ^^^^^^^^ `main::TestType` cannot be sent between threads safely
|
2021-09-26 07:18:58 +00:00
|
|
|
| |
|
2021-09-07 11:30:53 +00:00
|
|
|
| required by a bound introduced by this call
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2021-11-11 23:28:19 +00:00
|
|
|
= help: the trait `Send` is not implemented for `main::TestType`
|
2022-08-15 20:31:37 +00:00
|
|
|
note: required for `Outer2<main::TestType>` to implement `Sync`
|
2021-03-30 20:37:30 +00:00
|
|
|
--> $DIR/negated-auto-traits-error.rs:14:22
|
|
|
|
|
|
|
|
|
LL | unsafe impl<T: Send> Sync for Outer2<T> {}
|
2023-01-11 03:21:11 +00:00
|
|
|
| ---- ^^^^ ^^^^^^^^^
|
|
|
|
| |
|
|
|
|
| unsatisfied trait bound introduced here
|
2021-07-31 16:26:55 +00:00
|
|
|
note: required by a bound in `is_sync`
|
|
|
|
--> $DIR/negated-auto-traits-error.rs:17:15
|
|
|
|
|
|
|
|
|
LL | fn is_sync<T: Sync>(_: T) {}
|
|
|
|
| ^^^^ required by this bound in `is_sync`
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
error: aborting due to 7 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|