blob: fda294a61546b5c6fa2befd83ef8281b92bba9ea (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#![warn(clippy::single_component_path_imports)]
#![allow(unused_imports)]
// #7106: use statements exporting a macro within a crate should not trigger lint
// #7923: normal `use` statements of macros should also not trigger the lint
macro_rules! m1 {
() => {};
}
pub(crate) use m1; // ok
macro_rules! m2 {
() => {};
}
use m2; // ok
fn main() {
m1!();
m2!();
}
|