Fix typo in "new region bound" suggestion
The lifetime name shoud always appear in text surrounded by `.
This commit is contained in:
parent
23c2723269
commit
0b8bbac3ff
13 changed files with 21 additions and 21 deletions
|
@ -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,
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue