Skip to content

Commit 9348618

Browse files
bombless向越可
authored and
向越可
committed
Improve error message about regions of function body
1 parent 2174bd9 commit 9348618

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc/infer/error_reporting.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ impl<'tcx> TyCtxt<'tcx> {
158158
"scope of call-site for function"
159159
}
160160
region::CodeExtentData::ParameterScope { .. } => {
161-
"scope of parameters for function"
161+
"scope of function body"
162162
}
163163
region::CodeExtentData::DestructionScope(_) => {
164164
new_string = format!("destruction scope surrounding {}", tag);

0 commit comments

Comments
 (0)