diff options
| author | bors <bors@rust-lang.org> | 2020-01-14 07:13:31 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-01-14 07:13:31 +0000 |
| commit | c06e4aca19046b07d952b16e9f002bfab38fde6b (patch) | |
| tree | 8fe9c20096ddf75571b4e9ff94a929858a4da40e /src/librustc_error_codes/error_codes | |
| parent | 30ca215b4e38b32aa7abdd635c5e2d56f5724494 (diff) | |
| parent | b8c0e3129c0db858226f48406f6f8cb6f2a2b066 (diff) | |
| download | rust-c06e4aca19046b07d952b16e9f002bfab38fde6b.tar.gz rust-c06e4aca19046b07d952b16e9f002bfab38fde6b.zip | |
Auto merge of #68201 - JohnTitor:rollup-26e39gu, r=JohnTitor
Rollup of 10 pull requests Successful merges: - #67854 (Use `report_in_external_macro` for internal lints) - #67989 (rustdoc: Don't allow `#![feature(...)]` on stable or beta) - #68036 (libterm: parse extended terminfo format) - #68127 (Clarify the relationship between `extended` and `tools` in `config.toml`) - #68143 (Forbid elided lifetimes within const generic parameter types) - #68150 (Document behavior of set_nonblocking on UnixListener) - #68166 (rustdoc: HTML escape arrows on help popup) - #68176 (Clean up err codes) - #68179 (Remove unneeded scope) - #68188 (Tweak assertion note in format check) Failed merges: r? @ghost
Diffstat (limited to 'src/librustc_error_codes/error_codes')
| -rw-r--r-- | src/librustc_error_codes/error_codes/E0191.md | 10 | ||||
| -rw-r--r-- | src/librustc_error_codes/error_codes/E0192.md | 16 |
2 files changed, 22 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 { diff --git a/src/librustc_error_codes/error_codes/E0192.md b/src/librustc_error_codes/error_codes/E0192.md index 33308868cb2..5fd951b2e86 100644 --- a/src/librustc_error_codes/error_codes/E0192.md +++ b/src/librustc_error_codes/error_codes/E0192.md @@ -1,3 +1,19 @@ +A negative impl was added on a trait implementation. + +Erroneous code example: + +```compile_fail,E0192 +trait Trait { + type Bar; +} + +struct Foo; + +impl !Trait for Foo { } //~ ERROR E0192 + +fn main() {} +``` + Negative impls are only allowed for auto traits. For more information see the [opt-in builtin traits RFC][RFC 19]. |
