You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
417 B
19 lines
417 B
use thiserror::Error;
|
|
|
|
pub use std::error::Error;
|
|
|
|
#[test]
|
|
fn test_unused_qualifications() {
|
|
#![deny(unused_qualifications)]
|
|
|
|
// Expansion of derive(Error) macro can't know whether something like
|
|
// std::error::Error is already imported in the caller's scope so it must
|
|
// suppress unused_qualifications.
|
|
|
|
#[derive(Debug, Error)]
|
|
#[error("...")]
|
|
pub struct MyError;
|
|
|
|
let _: MyError;
|
|
}
|