mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
Auto merge of #38007 - alygin:err-expl-fix, r=eddyb
Fix error explanation formatting Errors E0101, E0458, E0535 and E0537 have incorrectly formatted bulleted lists in their explanations. As the result, they are not rendered as lists in the documentation. The fix applies the correct formatting to those lists.
This commit is contained in:
commit
0e17ba5ffc
@ -56,9 +56,11 @@ An unknown "kind" was specified for a link attribute. Erroneous code example:
|
||||
```
|
||||
|
||||
Please specify a valid "kind" value, from one of the following:
|
||||
|
||||
* static
|
||||
* dylib
|
||||
* framework
|
||||
|
||||
"##,
|
||||
|
||||
E0459: r##"
|
||||
|
@ -1377,6 +1377,7 @@ let x = |_| {}; // error: cannot determine a type for this expression
|
||||
```
|
||||
|
||||
You have two possibilities to solve this situation:
|
||||
|
||||
* Give an explicit definition of the expression
|
||||
* Infer the expression
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user