Also fix an existing compile-fail test which was intended to cover
this case.
This closes issue #17593
// FIXME -- it seems like this method actually pushes
// duplicate impls onto the list
- ty::populate_implementations_for_type_if_necessary(self.tcx,
- trait_def_id);
+ ty::populate_implementations_for_trait_if_necessary(self.tcx,
+ trait_def_id);
let mut impls = Vec::new();
self.push_impls_of_trait(trait_def_id, &mut impls);
extern crate trait_impl_conflict;
use trait_impl_conflict::Foo;
-impl<A> Foo for A { //~ ERROR E0117
+impl<A> Foo for A {
+ //~^ ERROR E0117
+ //~^^ ERROR E0119
}
fn main() {