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

8 lines
143 B
Rust

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