-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generic details 10: interface-implemented requirements (#1088)
This proposal: - Adds support for interfaces requiring other types than `Self` to implement interfaces, as in: ``` interface IntLike { impl i32 as As(Self); // ... } ``` - Defines requirements on how to satisfy those requirements that have a `where` clause. - Extends `observe` declarations to include saying a type implements an interface, so code can provide a proof instead of the compiler having to perform a recursive search. Co-authored-by: Richard Smith <[email protected]>
- Loading branch information
Showing
2 changed files
with
406 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.