]> git.proxmox.com Git - rustc.git/blame - src/tools/clippy/tests/ui/single_component_path_imports.rs
New upstream version 1.52.1+dfsg1
[rustc.git] / src / tools / clippy / tests / ui / single_component_path_imports.rs
CommitLineData
f20569fa
XL
1// run-rustfix
2// edition:2018
3#![warn(clippy::single_component_path_imports)]
4#![allow(unused_imports)]
5
6use regex;
7use serde as edres;
8pub use serde;
9
10macro_rules! m {
11 () => {
12 use regex;
13 };
14}
15
16fn main() {
17 regex::Regex::new(r"^\d{4}-\d{2}-\d{2}$").unwrap();
18
19 // False positive #5154, shouldn't trigger lint.
20 m!();
21}