@@ -43,7 +43,7 @@ LL | is_send((8, TestType));
43
43
= help: within `({integer}, dummy1c::TestType)`, the trait `std::marker::Send` is not implemented for `dummy1c::TestType`
44
44
= note: required because it appears within the type `({integer}, dummy1c::TestType)`
45
45
46
- error[E0277]: the trait bound `dummy2::TestType: std::marker::Send` is not satisfied
46
+ error[E0277]: `dummy2::TestType` cannot be sent between threads safely
47
47
--> $DIR/traits-negative-impls.rs:48:13
48
48
|
49
49
LL | fn is_send<T: Send>(_: T) {}
@@ -55,6 +55,7 @@ LL | is_send(Box::new(TestType));
55
55
| expected an implementor of trait `std::marker::Send`
56
56
| help: consider borrowing here: `&Box::new(TestType)`
57
57
|
58
+ = note: the trait bound `dummy2::TestType: std::marker::Send` is not satisfied
58
59
= note: required because of the requirements on the impl of `std::marker::Send` for `std::ptr::Unique<dummy2::TestType>`
59
60
= note: required because it appears within the type `std::boxed::Box<dummy2::TestType>`
60
61
@@ -72,7 +73,7 @@ LL | is_send(Box::new(Outer2(TestType)));
72
73
= note: required because of the requirements on the impl of `std::marker::Send` for `std::ptr::Unique<Outer2<dummy3::TestType>>`
73
74
= note: required because it appears within the type `std::boxed::Box<Outer2<dummy3::TestType>>`
74
75
75
- error[E0277]: the trait bound `main::TestType: std::marker::Sync` is not satisfied
76
+ error[E0277]: `main::TestType` cannot be sent between threads safely
76
77
--> $DIR/traits-negative-impls.rs:66:13
77
78
|
78
79
LL | fn is_sync<T: Sync>(_: T) {}
@@ -84,6 +85,7 @@ LL | is_sync(Outer2(TestType));
84
85
| expected an implementor of trait `std::marker::Sync`
85
86
| help: consider borrowing here: `&Outer2(TestType)`
86
87
|
88
+ = note: the trait bound `main::TestType: std::marker::Sync` is not satisfied
87
89
= note: required because of the requirements on the impl of `std::marker::Sync` for `Outer2<main::TestType>`
88
90
89
91
error: aborting due to 7 previous errors
0 commit comments