@@ -43,7 +43,7 @@ LL | is_send((8, TestType));
4343 = help: within `({integer}, dummy1c::TestType)`, the trait `std::marker::Send` is not implemented for `dummy1c::TestType`
4444 = note: required because it appears within the type `({integer}, dummy1c::TestType)`
4545
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
4747 --> $DIR/traits-negative-impls.rs:48:13
4848 |
4949LL | fn is_send<T: Send>(_: T) {}
@@ -55,6 +55,7 @@ LL | is_send(Box::new(TestType));
5555 | expected an implementor of trait `std::marker::Send`
5656 | help: consider borrowing here: `&Box::new(TestType)`
5757 |
58+ = note: the trait bound `dummy2::TestType: std::marker::Send` is not satisfied
5859 = note: required because of the requirements on the impl of `std::marker::Send` for `std::ptr::Unique<dummy2::TestType>`
5960 = note: required because it appears within the type `std::boxed::Box<dummy2::TestType>`
6061
@@ -72,7 +73,7 @@ LL | is_send(Box::new(Outer2(TestType)));
7273 = note: required because of the requirements on the impl of `std::marker::Send` for `std::ptr::Unique<Outer2<dummy3::TestType>>`
7374 = note: required because it appears within the type `std::boxed::Box<Outer2<dummy3::TestType>>`
7475
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
7677 --> $DIR/traits-negative-impls.rs:66:13
7778 |
7879LL | fn is_sync<T: Sync>(_: T) {}
@@ -84,6 +85,7 @@ LL | is_sync(Outer2(TestType));
8485 | expected an implementor of trait `std::marker::Sync`
8586 | help: consider borrowing here: `&Outer2(TestType)`
8687 |
88+ = note: the trait bound `main::TestType: std::marker::Sync` is not satisfied
8789 = note: required because of the requirements on the impl of `std::marker::Sync` for `Outer2<main::TestType>`
8890
8991error: aborting due to 7 previous errors
0 commit comments