Error message reformatting, close #2309.

This commit is contained in:
Graydon Hoare
2012-05-02 14:45:16 -07:00
parent c2382f9ebf
commit b12e27595e
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -514,8 +514,8 @@ fn walk_pat(e: @env, pat: @ast::pat, sc: scopes, v: vt<scopes>) {
e.def_map.insert(pat.id, fnd);
}
some(fnd@ast::def_const(_)) {
e.sess.span_err(p.span, "Sorry, rebinding or matching \
against symbolic constants is not allowed.");
e.sess.span_err(p.span, "pattern variable conflicts \
with constant '" + path_to_ident(p) + "'");
}
// Binds a var -- nothing needs to be done
_ {}
+1 -1
View File
@@ -1,4 +1,4 @@
// error-pattern: Sorry, rebinding or matching against symbolic
// error-pattern: pattern variable conflicts
mod foo {
type t = u8;