Skip to content

Commit b12e275

Browse files
committed
Error message reformatting, close #2309.
1 parent c2382f9 commit b12e275

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/rustc/middle/resolve.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -514,8 +514,8 @@ fn resolve_names(e: @env, c: @ast::crate) {
514514
e.def_map.insert(pat.id, fnd);
515515
}
516516
some(fnd@ast::def_const(_)) {
517-
e.sess.span_err(p.span, "Sorry, rebinding or matching \
518-
against symbolic constants is not allowed.");
517+
e.sess.span_err(p.span, "pattern variable conflicts \
518+
with constant '" + path_to_ident(p) + "'");
519519
}
520520
// Binds a var -- nothing needs to be done
521521
_ {}

src/test/compile-fail/issue-1193.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// error-pattern: Sorry, rebinding or matching against symbolic
1+
// error-pattern: pattern variable conflicts
22
mod foo {
33
type t = u8;
44

0 commit comments

Comments
 (0)