fork/rust
git clone https://git.julia.blue/fork/rust
49cae55760d
1.44.0
1error[E0277]: `dummy::TestType` cannot be sent between threads safely 2 --> $DIR/negated-auto-traits-error.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/negated-auto-traits-error.rs:23:5 14 | 15LL | struct Outer<T: Send>(T); 16 | ---- required by this bound in `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/negated-auto-traits-error.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/negated-auto-traits-error.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/negated-auto-traits-error.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 | ^^^^^^^^^^^^^^^^^^ 54 | | 55 | expected an implementor of trait `std::marker::Send` 56 | help: consider borrowing here: `&Box::new(TestType)` 57 | 58 = note: the trait bound `dummy2::TestType: std::marker::Send` is not satisfied 59 = note: required because of the requirements on the impl of `std::marker::Send` for `std::ptr::Unique<dummy2::TestType>` 60 = note: required because it appears within the type `std::boxed::Box<dummy2::TestType>` 61 62error[E0277]: `dummy3::TestType` cannot be sent between threads safely 63 --> $DIR/negated-auto-traits-error.rs:56:13 64 | 65LL | fn is_send<T: Send>(_: T) {} 66 | ---- required by this bound in `is_send` 67... 68LL | is_send(Box::new(Outer2(TestType))); 69 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ `dummy3::TestType` cannot be sent between threads safely 70 | 71 = help: within `Outer2<dummy3::TestType>`, the trait `std::marker::Send` is not implemented for `dummy3::TestType` 72 = note: required because it appears within the type `Outer2<dummy3::TestType>` 73 = note: required because of the requirements on the impl of `std::marker::Send` for `std::ptr::Unique<Outer2<dummy3::TestType>>` 74 = note: required because it appears within the type `std::boxed::Box<Outer2<dummy3::TestType>>` 75 76error[E0277]: `main::TestType` cannot be sent between threads safely 77 --> $DIR/negated-auto-traits-error.rs:66:13 78 | 79LL | fn is_sync<T: Sync>(_: T) {} 80 | ---- required by this bound in `is_sync` 81... 82LL | is_sync(Outer2(TestType)); 83 | ^^^^^^^^^^^^^^^^ 84 | | 85 | expected an implementor of trait `std::marker::Sync` 86 | help: consider borrowing here: `&Outer2(TestType)` 87 | 88 = note: the trait bound `main::TestType: std::marker::Sync` is not satisfied 89 = note: required because of the requirements on the impl of `std::marker::Sync` for `Outer2<main::TestType>` 90 91error: aborting due to 7 previous errors 92 93For more information about this error, try `rustc --explain E0277`.