diff options
| -rw-r--r-- | src/librustc_metadata/diagnostics.rs | 7 | ||||
| -rw-r--r-- | src/librustc_typeck/diagnostics.rs | 5 | ||||
| -rw-r--r-- | src/libsyntax/diagnostic_list.rs | 10 |
3 files changed, 12 insertions, 10 deletions
diff --git a/src/librustc_metadata/diagnostics.rs b/src/librustc_metadata/diagnostics.rs index b2f4760727a..e327be3d503 100644 --- a/src/librustc_metadata/diagnostics.rs +++ b/src/librustc_metadata/diagnostics.rs @@ -56,9 +56,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##" diff --git a/src/librustc_typeck/diagnostics.rs b/src/librustc_typeck/diagnostics.rs index f5432c6e0fc..e64a312d8e1 100644 --- a/src/librustc_typeck/diagnostics.rs +++ b/src/librustc_typeck/diagnostics.rs @@ -1377,8 +1377,9 @@ 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: diff --git a/src/libsyntax/diagnostic_list.rs b/src/libsyntax/diagnostic_list.rs index 9110e989a8a..ace3af0f102 100644 --- a/src/libsyntax/diagnostic_list.rs +++ b/src/libsyntax/diagnostic_list.rs @@ -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: |
