fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0199]: implementing the trait `MySafeTrait` is not unsafe 2 --> $DIR/coherence-default-trait-impl.rs:8:1 3 | 4LL | unsafe impl MySafeTrait for Foo {} 5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 6 | 7help: remove `unsafe` from this trait implementation 8 | 9LL - unsafe impl MySafeTrait for Foo {} 10LL + impl MySafeTrait for Foo {} 11 | 12 13error[E0200]: the trait `MyUnsafeTrait` requires an `unsafe impl` declaration 14 --> $DIR/coherence-default-trait-impl.rs:13:1 15 | 16LL | impl MyUnsafeTrait for Foo {} 17 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ 18 | 19 = note: the trait `MyUnsafeTrait` enforces invariants that the compiler can't check. Review the trait documentation and make sure this implementation upholds those invariants before adding the `unsafe` keyword 20help: add `unsafe` to this trait implementation 21 | 22LL | unsafe impl MyUnsafeTrait for Foo {} 23 | ++++++ 24 25error: aborting due to 2 previous errors 26 27Some errors have detailed explanations: E0199, E0200. 28For more information about an error, try `rustc --explain E0199`.