blob: b847000a81d80089c9d3bc98a1c043b4494d0962 [file] [log] [blame]
trait Foo {
#[derive(Clone)]
//~^ ERROR `derive` may only be applied to structs, enums and unions
type Bar;
}
struct Bar;
impl Bar {
#[derive(Clone)]
//~^ ERROR `derive` may only be applied to structs, enums and unions
fn bar(&self) {}
}
fn main() {}