Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean up err codes #68176

Merged
merged 2 commits into from
Jan 14, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions src/librustc_error_codes/error_codes/E0191.md
Original file line number Diff line number Diff line change
@@ -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 {
Expand All @@ -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 {
Expand Down
16 changes: 16 additions & 0 deletions src/librustc_error_codes/error_codes/E0192.md
Original file line number Diff line number Diff line change
@@ -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].

Expand Down