]> git.lizzy.rs Git - rust.git/blob - src/test/ui/imports/unused-import-issue-87973.rs
Sync portable-simd to rust-lang/portable-simd@72df4c45056a8bc0d1b3f06fdc828722177f0763
[rust.git] / src / test / ui / imports / unused-import-issue-87973.rs
1 // run-rustfix
2 #![deny(unused_imports)]
3
4 // Check that attributes get removed too. See #87973.
5 #[deprecated]
6 #[allow(unsafe_code)]
7 #[cfg(not(foo))]
8 use std::fs;
9 //~^ ERROR unused import
10
11 fn main() {}