]> git.lizzy.rs Git - rust.git/blobdiff - src/test/compile-fail/issue-21974.rs
Make RFC 1214 warnings into errors, and rip out the "warn or err"
[rust.git] / src / test / compile-fail / issue-21974.rs
index f768d6c00ecdb1df44ed1d4e34e31db1866ac42b..6ddfa4c8e3e57c5473b070716e04217b652f7e6f 100644 (file)
@@ -17,11 +17,11 @@ trait Foo {
     fn foo(self);
 }
 
-fn foo<'a,'b,T>(x: &'a T, y: &'b T)
+fn foo<'a,'b,T>(x: &'a T, y: &'b T) //~ ERROR type annotations required
     where &'a T : Foo,
           &'b T : Foo
 {
-    x.foo(); //~ ERROR type annotations required
+    x.foo();
     y.foo();
 }