1
Fork 0

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:
Flavio Percoco 2014-12-28 23:33:18 +01:00
parent 470118f3e9
commit 8b883ab268
34 changed files with 176 additions and 39 deletions

View file

@ -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,