allow negative impls for traits that have a default impl

This commit is contained in:
Flavio Percoco 2015-02-21 01:01:48 +01:00
parent d021c55fb9
commit 753db88914
2 changed files with 7 additions and 4 deletions

View file

@ -17,6 +17,6 @@ trait TestTrait {
}
impl !TestTrait for TestType {}
//~^ ERROR negative impls are currently allowed just for `Send` and `Sync`
//~^ ERROR negative impls are only allowed for traits with default impls (e.g., `Send` and `Sync`)
fn main() {}