more readable type annotation error string

This commit is contained in:
Sebastien Bourdeauducq 2022-02-28 16:24:03 +08:00
parent a9c73a4915
commit 5d8e87d923

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
)
})?