]> git.lizzy.rs Git - rust.git/blob - tests/ui/imports/unused-import-issue-87973.rs
Rollup merge of #106670 - albertlarsan68:check-docs-in-pr-ci, r=Mark-Simulacrum
[rust.git] / tests / 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() {}