rust/src/test/ui/span/issue-43927-non-ADT-derive.rs

11 lines
394 B
Rust
Raw Normal View History

#![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
//~| 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`
struct DerivedOn;
fn main() {}