permit negative impls for non-auto traits
This commit is contained in:
parent
a17dd36084
commit
e8a05e201e
35 changed files with 328 additions and 101 deletions
4
src/librustc_error_codes/error_codes/E0749.md
Normal file
4
src/librustc_error_codes/error_codes/E0749.md
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
Negative impls are not allowed to have any items. Negative impls
|
||||
declare that a trait is **not** implemented (and never will be) and
|
||||
hence there is no need to specify the values for trait methods or
|
||||
other items.
|
||||
4
src/librustc_error_codes/error_codes/E0750.md
Normal file
4
src/librustc_error_codes/error_codes/E0750.md
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
Negative impls cannot be default impls. A default impl supplies
|
||||
default values for the items within to be used by other impls, whereas
|
||||
a negative impl declares that there are no other impls. These don't
|
||||
make sense to combine.
|
||||
Loading…
Add table
Add a link
Reference in a new issue