rust/tests/ui/lint/unused/issue-59896.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
127 B
Rust
Raw Normal View History

2019-04-12 13:42:52 -05:00
#![deny(unused_imports)]
struct S;
fn main() {
use S; //~ ERROR the item `S` is imported redundantly
let _s = S;
}