1 error[E0200]: the trait `UnsafeTrait` requires an `unsafe impl` declaration
2 --> $DIR/safety-trait-impl.rs:14:1
4 LL | impl UnsafeTrait for u16 { }
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7 error[E0199]: implementing the trait `SafeTrait` is not unsafe
8 --> $DIR/safety-trait-impl.rs:16:1
10 LL | unsafe impl SafeTrait for u32 { }
11 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
13 error: aborting due to 2 previous errors
15 Some errors have detailed explanations: E0199, E0200.
16 For more information about an error, try `rustc --explain E0199`.