summaryrefslogtreecommitdiffstats
path: root/src/test/ui/imports/unused-import-issue-87973.rs
blob: c31f0f9796ecf67f393afb911bb5249506a0212e (plain)
1
2
3
4
5
6
7
8
9
10
11
// run-rustfix
#![deny(unused_imports)]

// Check that attributes get removed too. See #87973.
#[deprecated]
#[allow(unsafe_code)]
#[cfg(not(foo))]
use std::fs;
//~^ ERROR unused import

fn main() {}