diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2020-01-13 13:32:32 +0100 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2020-01-13 15:02:49 +0100 |
| commit | 11f74189f1fa92fce4d7bfec5d9eed4e1f0c352e (patch) | |
| tree | 95ee4459c0170d5539081192c8a8378fcb03d963 /src | |
| parent | ee84c30aee06a004b8d8f8d24000351e9d1cb4bf (diff) | |
| download | rust-11f74189f1fa92fce4d7bfec5d9eed4e1f0c352e.tar.gz rust-11f74189f1fa92fce4d7bfec5d9eed4e1f0c352e.zip | |
Clean up E0191 explanation
Diffstat (limited to 'src')
| -rw-r--r-- | src/librustc_error_codes/error_codes/E0191.md | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/librustc_error_codes/error_codes/E0191.md b/src/librustc_error_codes/error_codes/E0191.md index b79196f6cec..46b773bdc50 100644 --- a/src/librustc_error_codes/error_codes/E0191.md +++ b/src/librustc_error_codes/error_codes/E0191.md @@ -1,5 +1,6 @@ -Trait objects need to have all associated types specified. Erroneous code -example: +An associated type wasn't specified for a trait object. + +Erroneous code example: ```compile_fail,E0191 trait Trait { @@ -10,8 +11,9 @@ type Foo = Trait; // error: the value of the associated type `Bar` (from // the trait `Trait`) must be specified ``` -Please verify you specified all associated types of the trait and that you -used the right trait. Example: +Trait objects need to have all associated types specified. Please verify that +all associated types of the trait were specified and the correct trait was used. +Example: ``` trait Trait { |
