• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 use thiserror::Error;
2 
3 #[derive(Error, Debug)]
4 #[error]
5 pub struct MyError;
6 
main()7 fn main() {
8     // No error on the following line. Thiserror emits an Error impl despite the
9     // bad attribute.
10     _ = &MyError as &dyn std::error::Error;
11 }
12