Add syntax for negative implementations of traits
This commit introduces the syntax for negative implmenetations of traits as shown below: `impl !Trait for Type {}` cc #13231 Part of RFC #3
This commit is contained in:
parent
470118f3e9
commit
8b883ab268
34 changed files with 176 additions and 39 deletions
|
@ -488,6 +488,7 @@ impl<'a> TraitDef<'a> {
|
|||
ident,
|
||||
a,
|
||||
ast::ItemImpl(ast::Unsafety::Normal,
|
||||
ast::ImplPolarity::Positive,
|
||||
trait_generics,
|
||||
opt_trait_ref,
|
||||
self_type,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue