blob: 2e5101b822c0c04d48f593a7554d8b065e60c6b1 [file] [log] [blame]
#![feature(marker_trait_attr)]
#[marker]
trait A {}
trait B {}
impl<T: A> B for T {}
impl<T: B> A for T {}
impl A for &str {}
impl<T: A + B> A for (T,) {}
trait TraitWithAssoc {
type Assoc;
}
impl<T: A> TraitWithAssoc for T {
type Assoc = T;
}
impl TraitWithAssoc for ((&str,),) {
//~^ ERROR conflicting implementations
type Assoc = ((&'static str,),);
}
fn main() {}