error[E0197]: inherent impls cannot be unsafe --> $DIR/E0197.rs:13:1 | LL | unsafe impl Foo { } //~ ERROR E0197 | ^^^^^^^^^^^^^^^^^^^ error: aborting due to previous error For more information about this error, try `rustc --explain E0197`.