1 // Check that inherent impls cannot be unsafe. 2 3 struct SomeStruct; 4 5 unsafe impl SomeStruct { //~ ERROR inherent impls cannot be unsafe foo(self)6 fn foo(self) { } 7 } 8 main()9 fn main() { } 10