Skip to content

Commit

Permalink
Test that choosing the default bundle does not ice
Browse files Browse the repository at this point in the history
  • Loading branch information
mejrs committed Feb 23, 2023
1 parent 242daf8 commit 634d8cb
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions tests/ui/issues/issue-106755.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// compile-flags:-Ztranslate-lang=en_US

#![feature(negative_impls)]
#![feature(marker_trait_attr)]

#[marker]
trait MyTrait {}

struct TestType<T>(::std::marker::PhantomData<T>);

unsafe impl<T: MyTrait + 'static> Send for TestType<T> {}

impl<T: MyTrait> !Send for TestType<T> {} //~ ERROR found both positive and negative implementation

unsafe impl<T: 'static> Send for TestType<T> {} //~ ERROR conflicting implementations

impl !Send for TestType<i32> {}

fn main() {}

0 comments on commit 634d8cb

Please sign in to comment.