1 A negative implementation was marked as unsafe.
3 Erroneous code example:
8 unsafe impl !Clone for Foo { } // error!
11 A negative implementation is one that excludes a type from implementing a
12 particular trait. Not being able to use a trait is always a safe operation,
13 so negative implementations are always safe and never need to be marked as
18 ```ignore (ignore auto_trait future compatibility warning)
19 #![feature(auto_traits)]
23 auto trait Enterprise {}
25 impl !Enterprise for Foo { }
28 Please note that negative impls are only allowed for auto traits.