mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
5 lines
158 B
Rust
5 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() {}
|