Fix error explanation formatting

This commit is contained in:
Andrew Lygin 2016-11-26 21:19:30 +03:00
parent 9fb81b92f9
commit 984c039e4e
3 changed files with 11 additions and 10 deletions

View file

@ -57,9 +57,10 @@ 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
* static
* dylib
* framework
"##,
E0459: r##"

View file

@ -1378,8 +1378,8 @@ 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
* Give an explicit definition of the expression
* Infer the expression
Examples:

View file

@ -65,8 +65,8 @@ fn main() {}
The `inline` attribute only supports two arguments:
- always
- never
* always
* never
All other arguments given to the `inline` attribute will return this error.
Example:
@ -121,9 +121,9 @@ pub fn main() {}
The `cfg` attribute supports only three kinds of predicates:
- any
- all
- not
* any
* all
* not
Example: