rust/tests/ui/lint/unused/issue-70041.rs

14 lines
191 B
Rust
Raw Normal View History

2020-03-16 13:17:40 -05:00
// compile-flags: --edition=2018
// run-pass
macro_rules! regex {
//~^ WARN unused macro definition
() => {};
}
#[allow(dead_code)]
use regex;
//~^ WARN unused import
fn main() {}