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:
bors 2016-11-27 06:04:18 -06:00 committed by GitHub
commit 0e17ba5ffc
2 changed files with 3 additions and 0 deletions

View File

@ -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##"

View File

@ -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