// Verify that the `where` clause suggestion is in the correct place // Previously, the suggestion to add `where` clause was placed inside the derive // like `#[derive(Clone where Inner: Clone)]` // instead of `struct Outer(Inner) where Inner: Clone` #![crate_type = "lib"] struct Inner(T); //~^ HELP consider annotating `Inner` with `#[derive(Clone)]` impl Clone for Inner<()> { fn clone(&self) -> Self { todo!() } } #[derive(Clone)] struct Outer(Inner); //~^ ERROR the trait bound `Inner: Clone` is not satisfied [E0277] //~| HELP consider introducing a `where` clause