Error message reformatting, close #2309.
This commit is contained in:
@@ -514,8 +514,8 @@ fn resolve_names(e: @env, c: @ast::crate) {
|
|||||||
e.def_map.insert(pat.id, fnd);
|
e.def_map.insert(pat.id, fnd);
|
||||||
}
|
}
|
||||||
some(fnd@ast::def_const(_)) {
|
some(fnd@ast::def_const(_)) {
|
||||||
e.sess.span_err(p.span, "Sorry, rebinding or matching \
|
e.sess.span_err(p.span, "pattern variable conflicts \
|
||||||
against symbolic constants is not allowed.");
|
with constant '" + path_to_ident(p) + "'");
|
||||||
}
|
}
|
||||||
// Binds a var -- nothing needs to be done
|
// Binds a var -- nothing needs to be done
|
||||||
_ {}
|
_ {}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// error-pattern: Sorry, rebinding or matching against symbolic
|
// error-pattern: pattern variable conflicts
|
||||||
mod foo {
|
mod foo {
|
||||||
type t = u8;
|
type t = u8;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user