allow negative impls for traits that have a default impl
This commit is contained in:
parent
d021c55fb9
commit
753db88914
2 changed files with 7 additions and 4 deletions
|
|
@ -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() {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue