Consistently use "allowed" rather than "permitted" in error messages.

This commit is contained in:
Lindsey Kuper 2012-07-09 11:44:26 -07:00
parent fa3dbb7f73
commit d5563d732d

View file

@ -100,7 +100,7 @@ fn ast_path_to_substs_and_ty<AC: ast_conv, RS: region_scope copy>(
(false, some(_)) {
tcx.sess.span_err(
path.span,
#fmt["no region bound is permitted on %s, \
#fmt["no region bound is allowed on `%s`, \
which is not declared as containing region pointers",
ty::item_path_str(tcx, did)]);
none