rollup merge of #17613 : bkoropoff/issue-17593

This commit is contained in:
Alex Crichton 2014-09-29 08:14:36 -07:00
commit 29216b5e5c
2 changed files with 5 additions and 3 deletions

View File

@ -49,7 +49,7 @@ impl<'cx, 'tcx> OverlapChecker<'cx, 'tcx> {
// FIXME -- it seems like this method actually pushes
// duplicate impls onto the list
ty::populate_implementations_for_type_if_necessary(self.tcx,
ty::populate_implementations_for_trait_if_necessary(self.tcx,
trait_def_id);
let mut impls = Vec::new();

View File

@ -15,7 +15,9 @@
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() {