blob: 30a528c535d44c3758e088bcb7ca75514da8bf8e [file] [log] [blame]
//@ revisions: simple negative_coherence
#![feature(negative_impls)]
#![cfg_attr(negative_coherence, feature(with_negative_coherence))]
trait MyTrait {}
impl<T: Copy> MyTrait for T { }
impl MyTrait for String { }
//~^ ERROR conflicting implementations of trait `MyTrait` for type `String`
fn main() {}