1 A negative implementation is one that excludes a type from implementing a
2 particular trait. Not being able to use a trait is always a safe operation,
3 so negative implementations are always safe and never need to be marked as
7 #![feature(optin_builtin_traits)]
11 // unsafe is unnecessary
12 unsafe impl !Clone for Foo { }
17 ```ignore (ignore auto_trait future compatibility warning)
18 #![feature(optin_builtin_traits)]
22 auto trait Enterprise {}
24 impl !Enterprise for Foo { }
27 Please note that negative impls are only allowed for auto traits.