diff options
| author | Dylan DPC <dylan.dpc@gmail.com> | 2020-03-27 15:09:54 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-03-27 15:09:54 +0100 |
| commit | 6b6c470beeae7792d0e9e7a2bbe4663a25c999c6 (patch) | |
| tree | 12b695fb914147b406acde5f4418879a65d31228 | |
| parent | 87fdf35572089028dff6bf4eb620c2f99764c1e0 (diff) | |
| parent | 88100baa2cbb5491d0a1ea5ff64e7adaf973f2a3 (diff) | |
| download | rust-6b6c470beeae7792d0e9e7a2bbe4663a25c999c6.tar.gz rust-6b6c470beeae7792d0e9e7a2bbe4663a25c999c6.zip | |
Rollup merge of #69887 - GuillaumeGomez:cleanup-e0404, r=Dylan-DPC
clean up E0404 explanation r? @Dylan-DPC
| -rw-r--r-- | src/librustc_error_codes/error_codes/E0404.md | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/librustc_error_codes/error_codes/E0404.md b/src/librustc_error_codes/error_codes/E0404.md index 201107c05a0..1360cc99afc 100644 --- a/src/librustc_error_codes/error_codes/E0404.md +++ b/src/librustc_error_codes/error_codes/E0404.md @@ -1,5 +1,5 @@ -You tried to use something which is not a trait in a trait position, such as -a bound or `impl`. +A type that is not a trait was used in a trait position, such as a bound +or `impl`. Erroneous code example: @@ -18,8 +18,8 @@ struct Foo; fn bar<T: Foo>(t: T) {} // error: `Foo` is not a trait ``` -Please verify that you didn't misspell the trait's name or otherwise use the -wrong identifier. Example: +Please verify that the trait's name was not misspelled or that the right +identifier was used. Example: ``` trait Foo { @@ -32,7 +32,7 @@ impl Foo for Bar { // ok! } ``` -or +or: ``` trait Foo { |
