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:
commit
9eac7bdd09
3 changed files with 37 additions and 5 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue