struct Foo; unsafe impl Foo { } //~ ERROR E0197 fn main() { }