1
Fork 0

Fix typo in "new region bound" suggestion

The lifetime name shoud always appear in text surrounded by `.
This commit is contained in:
Esteban Kuber 2021-12-17 02:10:12 +00:00
parent 23c2723269
commit 0b8bbac3ff
13 changed files with 21 additions and 21 deletions

View file

@ -275,7 +275,7 @@ pub fn unexpected_hidden_region_diagnostic(
fn_returns,
hidden_region.to_string(),
None,
format!("captures {}", hidden_region),
format!("captures `{}`", hidden_region),
None,
)
}