rust icon indicating copy to clipboard operation
rust copied to clipboard

compiletest allows incomplete error messages

Open sammykim opened this issue 13 years ago • 1 comments

For example, the test still pass with the following change:

--- a/src/test/compile-fail/assign-imm-local-twice.rs
+++ b/src/test/compile-fail/assign-imm-local-twice.rs
@@ -12,7 +12,7 @@ fn test() {
     let v: int;
     v = 1; //~ NOTE prior assignment occurs here
     debug!("v=%d", v);
-    v = 2; //~ ERROR re-assignment of immutable variable
+    v = 2; //~ ERROR re
     debug!("v=%d", v);
 }

sammykim avatar May 08 '13 08:05 sammykim

@sammykim this is intentional, it's to allow as much or as little of the error needs to be specified, at the developer's discression. Closing.

emberian avatar Jul 05 '13 18:07 emberian