more readable type annotation error string

escape-analysis
Sebastien Bourdeauducq 2022-02-28 16:24:03 +08:00
parent a9c73a4915
commit 5d8e87d923
1 changed files with 1 additions and 1 deletions

View File

@ -1076,7 +1076,7 @@ impl TopLevelComposer {
.as_ref()
.ok_or_else(|| {
format!(
"type annotation for `{}` at {} needed",
"type annotation needed for `{}` at {}",
x.node.arg, x.location
)
})?