1 use thiserror::Error;
2 
3 pub use std::error::Error;
4 
5 #[test]
test_unused_qualifications()6 fn test_unused_qualifications() {
7     #![deny(unused_qualifications)]
8 
9     // Expansion of derive(Error) macro can't know whether something like
10     // std::error::Error is already imported in the caller's scope so it must
11     // suppress unused_qualifications.
12 
13     #[derive(Debug, Error)]
14     #[error("...")]
15     pub struct MyError;
16 
17     let _: MyError;
18 }
19