Closed

Description
#[derive(Copy, Clone)]
pub struct Bar(<Bar as Foo>::Type);
#[derive(Copy, Clone)]
pub struct Baz(i8);
pub trait Foo {
type Type;
}
impl Foo for Bar {
type Type = i8;
}
fn main() {
println!("Ha, I don't compile!");
}
<anon>:1:10: 1:14 error: the trait `Copy` may not be implemented for this type; field `<unnamed_field>` does not implement `Copy` [E0204]
<anon>:1 #[derive(Copy, Clone)]
Baz is fine, Bar fails.