summaryrefslogtreecommitdiffstats
path: root/tests/ui/traits/overlap-not-permitted-for-builtin-trait.rs
blob: 4106f56d64ac6c36672083611abe0b04e72c7ed9 (plain)
1
2
3
4
5
6
7
8
9
10
#![allow(dead_code)]
#![feature(negative_impls)]

// Overlapping negative impls for `MyStruct` are not permitted:
struct MyStruct;
impl !Send for MyStruct {}
impl !Send for MyStruct {}
//~^ ERROR conflicting implementations of trait

fn main() {}