Auto merge of #36862 - chamoysvoice:E0220, r=GuillaumeGomez

Update E0220 error format

@jonathandturner
Part of #35233 .
Fixes #35385.
This commit is contained in:
bors 2016-10-02 05:01:57 -07:00 committed by GitHub
commit 791fb778cc
4 changed files with 10 additions and 6 deletions

View file

@ -13,7 +13,8 @@ trait Trait {
}
type Foo = Trait<F=i32>; //~ ERROR E0220
//~^ ERROR E0191
//~| NOTE associated type `F` not found
//~| ERROR E0191
//~| NOTE missing associated type `Bar` value
fn main() {
}

View file

@ -15,6 +15,7 @@ trait Trait {}
fn f<F:Trait(isize) -> isize>(x: F) {}
//~^ ERROR E0244
//~| NOTE expected no type arguments, found 1
//~| ERROR associated type `Output` not found
//~| ERROR E0220
//~| NOTE associated type `Output` not found
fn main() {}

View file

@ -2,7 +2,7 @@ error[E0220]: associated type `Trget` not found for `std::ops::Deref`
--> $DIR/type-binding.rs:16:20
|
16 | fn homura<T: Deref<Trget = i32>>(_: T) {}
| ^^^^^^^^^^^
| ^^^^^^^^^^^ associated type `Trget` not found
error: aborting due to previous error