rust/tests/ui/proc-macro/issue-89566-suggest-fix-invalid-top-level-macro-attr.rs

8 lines
143 B
Rust
Raw Normal View History

//@ run-rustfix
#![derive(Debug)] //~ ERROR `derive` attribute cannot be used at crate level
2024-02-07 10:42:01 +08:00
#[allow(dead_code)]
struct Test {}
fn main() {}