]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc-ui/unused.rs
Delay span bug when failing to normalize negative coherence impl subject due to other...
[rust.git] / src / test / rustdoc-ui / unused.rs
1 // check-pass
2
3 // This test purpose is to check that unused_imports lint isn't fired
4 // by rustdoc. Why would it? Because when rustdoc is running, it uses
5 // "everybody-loops" which replaces parts of code with "loop {}" to get
6 // huge performance improvements.
7
8 #![deny(unused_imports)]
9
10 use std::fs::File;
11
12 pub fn f() {
13     let _: File;
14 }