blob: 30a528c535d44c3758e088bcb7ca75514da8bf8e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
//@ 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() {}
|