]> git.lizzy.rs Git - rust.git/blob - tests/ui/single_component_path_imports_macro.fixed
removing unsafe from test fn's && renaming shrink to sugg_span
[rust.git] / tests / ui / single_component_path_imports_macro.fixed
1 // run-rustfix
2 #![warn(clippy::single_component_path_imports)]
3 #![allow(unused_imports)]
4
5 // #7106: use statements exporting a macro within a crate should not trigger lint
6
7 macro_rules! m1 {
8     () => {};
9 }
10 pub(crate) use m1; // ok
11
12 macro_rules! m2 {
13     () => {};
14 }
15  // fail
16
17 fn main() {
18     m1!();
19     m2!();
20 }