fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0277]: `dummy::TestType` cannot be sent between threads safely 2 --> $DIR/negated-auto-traits-error.rs:23:11 3 | 4LL | Outer(TestType); 5 | ----- ^^^^^^^^ `dummy::TestType` cannot be sent between threads safely 6 | | 7 | required by a bound introduced by this call 8 | 9 = help: the trait `Send` is not implemented for `dummy::TestType` 10note: required by a bound in `Outer` 11 --> $DIR/negated-auto-traits-error.rs:10:17 12 | 13LL | struct Outer<T: Send>(T); 14 | ^^^^ required by this bound in `Outer` 15 16error[E0277]: `dummy::TestType` cannot be sent between threads safely 17 --> $DIR/negated-auto-traits-error.rs:23:5 18 | 19LL | Outer(TestType); 20 | ^^^^^^^^^^^^^^^ `dummy::TestType` cannot be sent between threads safely 21 | 22 = help: the trait `Send` is not implemented for `dummy::TestType` 23note: required by a bound in `Outer` 24 --> $DIR/negated-auto-traits-error.rs:10:17 25 | 26LL | struct Outer<T: Send>(T); 27 | ^^^^ required by this bound in `Outer` 28 29error[E0277]: `dummy1b::TestType` cannot be sent between threads safely 30 --> $DIR/negated-auto-traits-error.rs:32:13 31 | 32LL | is_send(TestType); 33 | ------- ^^^^^^^^ `dummy1b::TestType` cannot be sent between threads safely 34 | | 35 | required by a bound introduced by this call 36 | 37 = help: the trait `Send` is not implemented for `dummy1b::TestType` 38note: required by a bound in `is_send` 39 --> $DIR/negated-auto-traits-error.rs:16:15 40 | 41LL | fn is_send<T: Send>(_: T) {} 42 | ^^^^ required by this bound in `is_send` 43 44error[E0277]: `dummy1c::TestType` cannot be sent between threads safely 45 --> $DIR/negated-auto-traits-error.rs:40:13 46 | 47LL | is_send((8, TestType)); 48 | ------- ^^^^^^^^^^^^^ `dummy1c::TestType` cannot be sent between threads safely 49 | | 50 | required by a bound introduced by this call 51 | 52 = help: within `({integer}, dummy1c::TestType)`, the trait `Send` is not implemented for `dummy1c::TestType` 53 = note: required because it appears within the type `({integer}, TestType)` 54note: required by a bound in `is_send` 55 --> $DIR/negated-auto-traits-error.rs:16:15 56 | 57LL | fn is_send<T: Send>(_: T) {} 58 | ^^^^ required by this bound in `is_send` 59 60error[E0277]: `dummy2::TestType` cannot be sent between threads safely 61 --> $DIR/negated-auto-traits-error.rs:48:13 62 | 63LL | is_send(Box::new(TestType)); 64 | ------- ^^^^^^^^^^^^^^^^^^ the trait `Send` is not implemented for `Unique<dummy2::TestType>` 65 | | 66 | required by a bound introduced by this call 67 | 68 = note: the trait bound `Unique<dummy2::TestType>: Send` is not satisfied 69 = note: required for `Unique<dummy2::TestType>` to implement `Send` 70note: required because it appears within the type `Box<TestType>` 71 --> $SRC_DIR/alloc/src/boxed.rs:LL:COL 72note: required by a bound in `is_send` 73 --> $DIR/negated-auto-traits-error.rs:16:15 74 | 75LL | fn is_send<T: Send>(_: T) {} 76 | ^^^^ required by this bound in `is_send` 77help: consider borrowing here 78 | 79LL | is_send(&Box::new(TestType)); 80 | + 81 82error[E0277]: `dummy3::TestType` cannot be sent between threads safely 83 --> $DIR/negated-auto-traits-error.rs:56:13 84 | 85LL | is_send(Box::new(Outer2(TestType))); 86 | ------- ^^^^^^^^^^^^^^^^^^^^^^^^^^ `dummy3::TestType` cannot be sent between threads safely 87 | | 88 | required by a bound introduced by this call 89 | 90 = help: within `Outer2<dummy3::TestType>`, the trait `Send` is not implemented for `dummy3::TestType` 91note: required because it appears within the type `Outer2<TestType>` 92 --> $DIR/negated-auto-traits-error.rs:12:8 93 | 94LL | struct Outer2<T>(T); 95 | ^^^^^^ 96 = note: required for `Unique<Outer2<dummy3::TestType>>` to implement `Send` 97note: required because it appears within the type `Box<Outer2<TestType>>` 98 --> $SRC_DIR/alloc/src/boxed.rs:LL:COL 99note: required by a bound in `is_send` 100 --> $DIR/negated-auto-traits-error.rs:16:15 101 | 102LL | fn is_send<T: Send>(_: T) {} 103 | ^^^^ required by this bound in `is_send` 104 105error[E0277]: `main::TestType` cannot be sent between threads safely 106 --> $DIR/negated-auto-traits-error.rs:66:20 107 | 108LL | is_sync(Outer2(TestType)); 109 | ------- ^^^^^^^^ `main::TestType` cannot be sent between threads safely 110 | | 111 | required by a bound introduced by this call 112 | 113 = help: the trait `Send` is not implemented for `main::TestType` 114note: required for `Outer2<main::TestType>` to implement `Sync` 115 --> $DIR/negated-auto-traits-error.rs:14:22 116 | 117LL | unsafe impl<T: Send> Sync for Outer2<T> {} 118 | ---- ^^^^ ^^^^^^^^^ 119 | | 120 | unsatisfied trait bound introduced here 121note: required by a bound in `is_sync` 122 --> $DIR/negated-auto-traits-error.rs:17:15 123 | 124LL | fn is_sync<T: Sync>(_: T) {} 125 | ^^^^ required by this bound in `is_sync` 126 127error: aborting due to 7 previous errors 128 129For more information about this error, try `rustc --explain E0277`.