We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 242daf8 commit 634d8cbCopy full SHA for 634d8cb
tests/ui/issues/issue-106755.rs
@@ -0,0 +1,19 @@
1
+// compile-flags:-Ztranslate-lang=en_US
2
+
3
+#![feature(negative_impls)]
4
+#![feature(marker_trait_attr)]
5
6
+#[marker]
7
+trait MyTrait {}
8
9
+struct TestType<T>(::std::marker::PhantomData<T>);
10
11
+unsafe impl<T: MyTrait + 'static> Send for TestType<T> {}
12
13
+impl<T: MyTrait> !Send for TestType<T> {} //~ ERROR found both positive and negative implementation
14
15
+unsafe impl<T: 'static> Send for TestType<T> {} //~ ERROR conflicting implementations
16
17
+impl !Send for TestType<i32> {}
18
19
+fn main() {}
0 commit comments