about summary refs log tree commit diff
path: root/src/test/compile-fail
diff options
context:
space:
mode:
authorJonathan Turner <jonathandturner@users.noreply.github.com>2016-09-16 09:29:48 -0700
committerGitHub <noreply@github.com>2016-09-16 09:29:48 -0700
commit9eac7bdd098d4d55e7322056e040dd3cca40ba67 (patch)
treebf8ddccdb6a0b2a702d9f4931633e439b64068b4 /src/test/compile-fail
parent8394685b8385156fc4bc31cfbc693867e276d9d7 (diff)
parent35584629f4f8ad1eb32c4363fb9b5437e1052e5e (diff)
downloadrust-9eac7bdd098d4d55e7322056e040dd3cca40ba67.tar.gz
rust-9eac7bdd098d4d55e7322056e040dd3cca40ba67.zip
Rollup merge of #36383 - GuillaumeGomez:e0049, r=jonathandturner
Update E0049 to new error format

Fixes #35210.
Part of #35233.

r? @jonathandturner
Diffstat (limited to 'src/test/compile-fail')
-rw-r--r--src/test/compile-fail/E0049.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/compile-fail/E0049.rs b/src/test/compile-fail/E0049.rs
index 5867e11e9ac..33ebd3f7aca 100644
--- a/src/test/compile-fail/E0049.rs
+++ b/src/test/compile-fail/E0049.rs
@@ -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() {