rust/tests/ui/lint/unused/issue-59896.rs
2024-07-31 00:07:42 -04:00

10 lines
130 B
Rust

#![deny(redundant_imports)]
struct S;
fn main() {
use S; //~ ERROR the item `S` is imported redundantly
let _s = S;
}