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

@ -182,6 +182,7 @@ pub struct Trait {
pub struct Impl {
pub unsafety: ast::Unsafety,
pub polarity: ast::ImplPolarity,
pub generics: ast::Generics,
pub trait_: Option<ast::TraitRef>,
pub for_: P<ast::Ty>,