blob: 694c95da7b482357564bdece999162f2e324221e [file]
// Regression test for https://github.com/rust-lang/rust/issues/148631
struct C;
struct S<T>(T);
trait Tr {}
impl<T> Clone for S<C>
//~^ ERROR the type parameter `T` is not constrained
where
S<T>: Tr,
{
fn clone(&self) -> Self {
*self
//~^ ERROR cannot move out of `*self`
}
}
fn main() {}