2018-09-25 23:51:35 +02:00
|
|
|
#![allow(dead_code)]
|
2020-01-09 05:56:38 -05:00
|
|
|
#![feature(negative_impls)]
|
2017-03-30 08:54:28 -04:00
|
|
|
|
2020-01-25 15:30:19 -05:00
|
|
|
// Overlapping negative impls for `MyStruct` are not permitted:
|
2017-03-30 08:54:28 -04:00
|
|
|
struct MyStruct;
|
|
|
|
impl !Send for MyStruct {}
|
|
|
|
impl !Send for MyStruct {}
|
2020-01-25 15:30:19 -05:00
|
|
|
//~^ ERROR conflicting implementations of trait
|
2017-03-30 08:54:28 -04:00
|
|
|
|
2020-01-09 05:56:38 -05:00
|
|
|
fn main() {}
|