]> git.lizzy.rs Git - rust.git/blobdiff - src/test/compile-fail/wf-in-fn-type-static.rs
Make RFC 1214 warnings into errors, and rip out the "warn or err"
[rust.git] / src / test / compile-fail / wf-in-fn-type-static.rs
index 593c9435f6c751dc607575a58e2018a826507442..8e3bca09758139ac179680b3ca2ddfa771ef01eb 100644 (file)
@@ -20,13 +20,13 @@ struct MustBeCopy<T:Copy> {
 
 struct Foo<T> {
     // needs T: 'static
-    x: fn() -> &'static T //~ WARN E0310
+    x: fn() -> &'static T //~ ERROR E0310
 }
 
 struct Bar<T> {
     // needs T: Copy
-    x: fn(&'static T) //~ WARN E0310
+    x: fn(&'static T) //~ ERROR E0310
 }
 
 #[rustc_error]
-fn main() { } //~ ERROR compilation successful
+fn main() { }