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

6 lines
158 B
Rust

#![derive(Debug, PartialEq, Eq)] // should be an outer attribute!
//~^ ERROR `derive` attribute cannot be used at crate level
struct DerivedOn;
fn main() {}