]> git.lizzy.rs Git - rust.git/blobdiff - src/test/compile-fail/wf-trait-default-fn-arg.rs
Make RFC 1214 warnings into errors, and rip out the "warn or err"
[rust.git] / src / test / compile-fail / wf-trait-default-fn-arg.rs
index 57c6c1979f87ed0094714a5f672c53964673af87..453aa2428ce5d1ee94dcf0f5236e524a15ea4970 100644 (file)
@@ -19,11 +19,11 @@ struct Bar<T:Eq+?Sized> { value: Box<T> }
 
 trait Foo {
     fn bar(&self, x: &Bar<Self>) {
-        //~^ WARN E0277
+        //~^ ERROR E0277
         //
         // Here, Eq ought to be implemented.
     }
 }
 
 #[rustc_error]
-fn main() { } //~ ERROR compilation successful
+fn main() { }