Fix error explanation formatting
This commit is contained in:
parent
9fb81b92f9
commit
984c039e4e
3 changed files with 11 additions and 10 deletions
|
|
@ -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##"
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue