Rollup merge of #36383 - GuillaumeGomez:e0049, r=jonathandturner

Update E0049 to new error format

Fixes #35210.
Part of #35233.

r? @jonathandturner
This commit is contained in:
Jonathan Turner 2016-09-16 09:29:48 -07:00 committed by GitHub
commit 9eac7bdd09
3 changed files with 37 additions and 5 deletions

View file

@ -9,13 +9,14 @@
// except according to those terms.
trait Foo {
fn foo<T: Default>(x: T) -> Self;
fn foo<T: Default>(x: T) -> Self; //~ NOTE expected 1 type parameter
}
struct Bar;
impl Foo for Bar {
fn foo(x: bool) -> Self { Bar } //~ ERROR E0049
//~| NOTE found 0 type parameters
}
fn main() {