// Copyright 2015 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. trait Foo {} impl Foo for T {} //~ ERROR conflicting implementations of trait `Foo`: impl Foo for U {} trait Bar {} impl Bar for T {} //~ ERROR conflicting implementations of trait `Bar` for type `u8`: impl Bar for u8 {} trait Baz {} impl Baz for T {} //~ ERROR conflicting implementations of trait `Baz<_>` for type `u8`: impl Baz for u8 {} trait Quux {} impl Quux for T {} //~ ERROR conflicting implementations of trait `Quux<_>`: impl Quux for T {} trait Qaar {} impl Qaar for T {} //~ ERROR conflicting implementations of trait `Qaar`: impl Qaar for T {} trait Qaax {} impl Qaax for T {} //~^ ERROR conflicting implementations of trait `Qaax` for type `u32`: impl Qaax for u32 {} fn main() {}