diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2020-01-24 12:56:32 +0100 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2020-01-24 12:56:32 +0100 |
| commit | 768f6f934028d3ac261cc6ad91219f6f90de1d72 (patch) | |
| tree | 8d42a0fbb101bcdd576779717e96edbbd7057cd5 | |
| parent | bf84eb538fd16743240434b3e837b36c35719fee (diff) | |
| download | rust-768f6f934028d3ac261cc6ad91219f6f90de1d72.tar.gz rust-768f6f934028d3ac261cc6ad91219f6f90de1d72.zip | |
Clean up error codes E0223 and E0225 explanations
| -rw-r--r-- | src/librustc_error_codes/error_codes/E0223.md | 3 | ||||
| -rw-r--r-- | src/librustc_error_codes/error_codes/E0225.md | 7 |
2 files changed, 7 insertions, 3 deletions
diff --git a/src/librustc_error_codes/error_codes/E0223.md b/src/librustc_error_codes/error_codes/E0223.md index 9fe03604255..0d49f514ccf 100644 --- a/src/librustc_error_codes/error_codes/E0223.md +++ b/src/librustc_error_codes/error_codes/E0223.md @@ -1,5 +1,6 @@ An attempt was made to retrieve an associated type, but the type was ambiguous. -For example: + +Erroneous code example: ```compile_fail,E0223 trait MyTrait {type X; } diff --git a/src/librustc_error_codes/error_codes/E0225.md b/src/librustc_error_codes/error_codes/E0225.md index b9820dc68ee..c306e710097 100644 --- a/src/librustc_error_codes/error_codes/E0225.md +++ b/src/librustc_error_codes/error_codes/E0225.md @@ -1,5 +1,6 @@ -You attempted to use multiple types as bounds for a closure or trait object. -Rust does not currently support this. A simple example that causes this error: +Multiple types were used as bounds for a closure or trait object. + +Erroneous code example: ```compile_fail,E0225 fn main() { @@ -7,6 +8,8 @@ fn main() { } ``` +Rust does not currently support this. + Auto traits such as Send and Sync are an exception to this rule: It's possible to have bounds of one non-builtin trait, plus any number of auto traits. For example, the following compiles correctly: |
