Skip to content

Commit 4c13a21

Browse files
committed
Add stderr
1 parent 634d8cb commit 4c13a21

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

tests/ui/issues/issue-106755.stderr

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
error[E0751]: found both positive and negative implementation of trait `Send` for type `TestType<_>`:
2+
--> $DIR/issue-106755.rs:13:1
3+
|
4+
LL | unsafe impl<T: MyTrait + 'static> Send for TestType<T> {}
5+
| ------------------------------------------------------ positive implementation here
6+
LL |
7+
LL | impl<T: MyTrait> !Send for TestType<T> {}
8+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ negative implementation here
9+
10+
error[E0119]: conflicting implementations of trait `Send` for type `TestType<_>`
11+
--> $DIR/issue-106755.rs:15:1
12+
|
13+
LL | unsafe impl<T: MyTrait + 'static> Send for TestType<T> {}
14+
| ------------------------------------------------------ first implementation here
15+
...
16+
LL | unsafe impl<T: 'static> Send for TestType<T> {}
17+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `TestType<_>`
18+
19+
error: aborting due to 2 previous errors
20+
21+
Some errors have detailed explanations: E0119, E0751.
22+
For more information about an error, try `rustc --explain E0119`.

0 commit comments

Comments
 (0)