rust/src/test/ui/error-codes/E0199.rs
2018-12-25 21:08:33 -07:00

10 lines
166 B
Rust

#![feature(optin_builtin_traits)]
struct Foo;
trait Bar { }
unsafe impl Bar for Foo { } //~ ERROR implementing the trait `Bar` is not unsafe [E0199]
fn main() {
}