]> git.lizzy.rs Git - rust.git/commitdiff
Remove an outdated FIXME, change to use the new //! ERROR syntax
authorTim Chevalier <chevalier@alum.wellesley.edu>
Thu, 14 Jun 2012 22:33:23 +0000 (15:33 -0700)
committerTim Chevalier <chevalier@alum.wellesley.edu>
Thu, 14 Jun 2012 22:35:44 +0000 (15:35 -0700)
src/test/run-pass/pred-not-bool.rs

index 6d1ad3a72adcbed9d4b23a7e28a55f3f37a98c57..58281b40b5e6175e09606e72779f98c5ee19607a 100644 (file)
@@ -1,12 +1,6 @@
-// FIXME should be in run-pass
-
-// -*- rust -*-
-
-// error-pattern: Non-boolean return type
-
 // this checks that a pred with a non-bool return
 // type is rejected, even if the pred is never used
 
-pure fn bad(a: int) -> int { ret 37; }
+pure fn bad(a: int) -> int { ret 37; } //! ERROR Non-boolean return type
 
 fn main() { }