Skip to content

Commit 634d8cb

Browse files
committed
Test that choosing the default bundle does not ice
1 parent 242daf8 commit 634d8cb

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

tests/ui/issues/issue-106755.rs

+19
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)