1 error[E0200]: the trait `Foo` requires an `unsafe impl` declaration
2 --> $DIR/safety-trait-impl-cc.rs:9:1
4 LL | impl lib::Foo for Bar {
5 | ^^^^^^^^^^^^^^^^^^^^^
7 = note: the trait `Foo` 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
8 help: add `unsafe` to this trait implementation
10 LL | unsafe impl lib::Foo for Bar {
13 error: aborting due to previous error
15 For more information about this error, try `rustc --explain E0200`.