]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/pub_use.rs
Rollup merge of #102764 - compiler-errors:issue-102762, r=jackh726
[rust.git] / src / tools / clippy / tests / ui / pub_use.rs
1 #![warn(clippy::pub_use)]
2 #![allow(unused_imports)]
3 #![no_main]
4
5 pub mod outer {
6     mod inner {
7         pub struct Test {}
8     }
9     // should be linted
10     pub use inner::Test;
11 }
12
13 // should not be linted
14 use std::fmt;