::dyn_safedyn safety of your traits!cargo add dyn_safe, or add the following to your Cargo.toml file:
toml
[dependencies]
dyn_safe = "x.y.z"
cargo search dyn_safeAdd the following to your lib.rs file:
```rust
extern crate dyn_safe; ```
Use #[dyn_safe(true)] or #[dyn_safe(false)] to, respectively,
assert that the trait object is dyn-safe or that the trait
object should not be dyn-safe.
```rust
extern crate dyn_safe;
trait Foo { fn whoops (); } ```
```rust
extern crate dyn_safe;
trait Foo { // … }
let _: dyn Foo; // Whoops ```