There are both a positive and negative trait implementation for the same type.
Erroneous code example:
#![allow(unused)]
fn main() {
trait MyTrait {}
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. Therefore, both cannot exist at the same time.
© 2010 The Rust Project Developers
Licensed under the Apache License, Version 2.0 or the MIT license, at your option.
https://doc.rust-lang.org/error_codes/E0751.html