Skip to content

Commit

Permalink
Improve error message about regions of function body
Browse files Browse the repository at this point in the history
  • Loading branch information
bombless authored and 向越可 committed Apr 26, 2016
1 parent 2174bd9 commit 9348618
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc/infer/error_reporting.rs
Expand Up @@ -158,7 +158,7 @@ impl<'tcx> TyCtxt<'tcx> {
"scope of call-site for function"
}
region::CodeExtentData::ParameterScope { .. } => {
"scope of parameters for function"
"scope of function body"
}
region::CodeExtentData::DestructionScope(_) => {
new_string = format!("destruction scope surrounding {}", tag);
Expand Down

0 comments on commit 9348618

Please sign in to comment.