rust/tests/ui/proc-macro/issue-89566-suggest-fix-invalid-top-level-macro-attr.fixed
2024-02-16 20:02:50 +00:00

8 lines
142 B
Rust

//@ run-rustfix
#[derive(Debug)] //~ ERROR `derive` attribute cannot be used at crate level
#[allow(dead_code)]
struct Test {}
fn main() {}