fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0751]: found both positive and negative implementation of trait `Send` for type `TestType<_>`: 2 --> $DIR/coherence-conflicting-negative-trait-impl.rs:11:1 3 | 4LL | unsafe impl<T: MyTrait + 'static> Send for TestType<T> {} 5 | ------------------------------------------------------ positive implementation here 6LL | 7LL | impl<T: MyTrait> !Send for TestType<T> {} 8 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ negative implementation here 9 10error[E0119]: conflicting implementations of trait `Send` for type `TestType<_>` 11 --> $DIR/coherence-conflicting-negative-trait-impl.rs:13:1 12 | 13LL | unsafe impl<T: MyTrait + 'static> Send for TestType<T> {} 14 | ------------------------------------------------------ first implementation here 15... 16LL | unsafe impl<T: 'static> Send for TestType<T> {} 17 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `TestType<_>` 18 19warning: cross-crate traits with a default impl, like `Send`, should not be specialized 20 --> $DIR/coherence-conflicting-negative-trait-impl.rs:15:1 21 | 22LL | impl !Send for TestType<i32> {} 23 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 24 | 25 = warning: this will change its meaning in a future release! 26 = note: for more information, see issue #93367 <https://github.com/rust-lang/rust/issues/93367> 27 = note: `i32` is not a generic parameter 28note: try using the same sequence of generic parameters as the struct definition 29 --> $DIR/coherence-conflicting-negative-trait-impl.rs:7:1 30 | 31LL | struct TestType<T>(::std::marker::PhantomData<T>); 32 | ^^^^^^^^^^^^^^^^^^ 33 = note: `#[warn(suspicious_auto_trait_impls)]` on by default 34 35error: aborting due to 2 previous errors; 1 warning emitted 36 37Some errors have detailed explanations: E0119, E0751. 38For more information about an error, try `rustc --explain E0119`.