1 // aux-build:trait_safety_lib.rs
3 // Check that unsafe traits require unsafe impls and that inherent
4 // impls cannot be unsafe.
6 extern crate trait_safety_lib as lib;
9 impl lib::Foo for Bar { //~ ERROR requires an `unsafe impl` declaration
10 fn foo(&self) -> isize {