// Copyright 2017 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at // http://rust-lang.org/COPYRIGHT. // // Licensed under the Apache License, Version 2.0 or the MIT license // , at your // option. This file may not be copied, modified, or distributed // except according to those terms. pub trait Trait1 { type Output; } pub trait Trait2 {} pub struct A; impl Trait1 for T where T: Trait2 { type Output = (); } impl Trait1> for A { //~^ ERROR conflicting implementations of trait //~| hard error //~| downstream crates may implement trait `Trait2>` for type `A` type Output = i32; } fn main() {}