//@ aux-build:coherence_orphan_lib.rs #![feature(negative_impls)] extern crate coherence_orphan_lib as lib; use lib::TheTrait; struct TheType; impl TheTrait for isize {} //~^ ERROR E0117 //~| ERROR not all trait items implemented impl TheTrait for isize {} //~^ ERROR not all trait items implemented impl TheTrait for TheType {} //~^ ERROR not all trait items implemented impl !Send for Vec {} //~ ERROR E0117 fn main() {}