diff --git a/src/rustc/middle/regionck.rs b/src/rustc/middle/regionck.rs index 875b013a608..a92cf1d9d43 100644 --- a/src/rustc/middle/regionck.rs +++ b/src/rustc/middle/regionck.rs @@ -44,11 +44,9 @@ fn check_expr(expr: @ast::expr, cx: ctxt, visitor: visit::vt) { referent_block_id = parent_blocks.get(referent_block_id); } else { - // TODO: Enable this. - - //cx.tcx.sess.span_err(expr.span, - // "reference escapes " + - // "its block"); + cx.tcx.sess.span_err(expr.span, + "reference escapes " + + "its block"); break; } }