fork/rust
git clone https://git.julia.blue/fork/rust
73528e339aa
1.40.0
1error[E0277]: `dummy::TestType` cannot be sent between threads safely 2 --> $DIR/traits-negative-impls.rs:23:11 3 | 4LL | struct Outer<T: Send>(T); 5 | ------------------------- required by `Outer` 6... 7LL | Outer(TestType); 8 | ^^^^^^^^ `dummy::TestType` cannot be sent between threads safely 9 | 10 = help: the trait `std::marker::Send` is not implemented for `dummy::TestType` 11 12error[E0277]: `dummy::TestType` cannot be sent between threads safely 13 --> $DIR/traits-negative-impls.rs:23:5 14 | 15LL | struct Outer<T: Send>(T); 16 | ------------------------- required by `Outer` 17... 18LL | Outer(TestType); 19 | ^^^^^^^^^^^^^^^ `dummy::TestType` cannot be sent between threads safely 20 | 21 = help: the trait `std::marker::Send` is not implemented for `dummy::TestType` 22 23error[E0277]: `dummy1b::TestType` cannot be sent between threads safely 24 --> $DIR/traits-negative-impls.rs:32:13 25 | 26LL | fn is_send<T: Send>(_: T) {} 27 | ------- ---- required by this bound in `is_send` 28... 29LL | is_send(TestType); 30 | ^^^^^^^^ `dummy1b::TestType` cannot be sent between threads safely 31 | 32 = help: the trait `std::marker::Send` is not implemented for `dummy1b::TestType` 33 34error[E0277]: `dummy1c::TestType` cannot be sent between threads safely 35 --> $DIR/traits-negative-impls.rs:40:13 36 | 37LL | fn is_send<T: Send>(_: T) {} 38 | ------- ---- required by this bound in `is_send` 39... 40LL | is_send((8, TestType)); 41 | ^^^^^^^^^^^^^ `dummy1c::TestType` cannot be sent between threads safely 42 | 43 = help: within `({integer}, dummy1c::TestType)`, the trait `std::marker::Send` is not implemented for `dummy1c::TestType` 44 = note: required because it appears within the type `({integer}, dummy1c::TestType)` 45 46error[E0277]: `dummy2::TestType` cannot be sent between threads safely 47 --> $DIR/traits-negative-impls.rs:48:13 48 | 49LL | fn is_send<T: Send>(_: T) {} 50 | ------- ---- required by this bound in `is_send` 51... 52LL | is_send(Box::new(TestType)); 53 | ^^^^^^^^^^^^^^^^^^ `dummy2::TestType` cannot be sent between threads safely 54 | 55 = help: the trait `std::marker::Send` is not implemented for `dummy2::TestType` 56 = note: required because of the requirements on the impl of `std::marker::Send` for `std::ptr::Unique<dummy2::TestType>` 57 = note: required because it appears within the type `std::boxed::Box<dummy2::TestType>` 58 59error[E0277]: `dummy3::TestType` cannot be sent between threads safely 60 --> $DIR/traits-negative-impls.rs:56:13 61 | 62LL | fn is_send<T: Send>(_: T) {} 63 | ------- ---- required by this bound in `is_send` 64... 65LL | is_send(Box::new(Outer2(TestType))); 66 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ `dummy3::TestType` cannot be sent between threads safely 67 | 68 = help: within `Outer2<dummy3::TestType>`, the trait `std::marker::Send` is not implemented for `dummy3::TestType` 69 = note: required because it appears within the type `Outer2<dummy3::TestType>` 70 = note: required because of the requirements on the impl of `std::marker::Send` for `std::ptr::Unique<Outer2<dummy3::TestType>>` 71 = note: required because it appears within the type `std::boxed::Box<Outer2<dummy3::TestType>>` 72 73error[E0277]: `main::TestType` cannot be sent between threads safely 74 --> $DIR/traits-negative-impls.rs:66:13 75 | 76LL | fn is_sync<T: Sync>(_: T) {} 77 | ------- ---- required by this bound in `is_sync` 78... 79LL | is_sync(Outer2(TestType)); 80 | ^^^^^^^^^^^^^^^^ `main::TestType` cannot be sent between threads safely 81 | 82 = help: the trait `std::marker::Send` is not implemented for `main::TestType` 83 = note: required because of the requirements on the impl of `std::marker::Sync` for `Outer2<main::TestType>` 84 85error: aborting due to 7 previous errors 86 87For more information about this error, try `rustc --explain E0277`.