2017-08-22 21:22:52 -05:00
|
|
|
#![allow(dead_code)]
|
|
|
|
|
|
|
|
#![derive(Debug, PartialEq, Eq)] // should be an outer attribute!
|
2017-11-20 06:13:27 -06:00
|
|
|
//~^ ERROR `derive` may only be applied to structs, enums and unions
|
2019-08-02 20:22:44 -05:00
|
|
|
//~| ERROR cannot determine resolution for the derive macro `Debug`
|
|
|
|
//~| ERROR cannot determine resolution for the derive macro `PartialEq`
|
|
|
|
//~| ERROR cannot determine resolution for the derive macro `Eq`
|
2017-08-22 21:22:52 -05:00
|
|
|
struct DerivedOn;
|
|
|
|
|
|
|
|
fn main() {}
|