Clean up E0751 explanation

This commit is contained in:
Guillaume Gomez 2020-08-12 14:15:44 +02:00
parent 441fd22557
commit d0704d5d36

View File

@ -5,8 +5,8 @@ Erroneous code example:
```compile_fail,E0751
trait MyTrait {}
impl MyTrait for i32 { }
impl !MyTrait for i32 { }
impl !MyTrait for i32 { } // error!
```
Negative implementations are a promise that the trait will never be
implemented for the given types.
Negative implementations are a promise that the trait will never be implemented
for the given types. Therefore, you can't have both at the same time!