Debian Codegraph @

.cargo/vendor/thiserror/tests/ui/invalid-input-impl-anyway.rs

raw
1 use thiserror::Error;
2
3 #[derive(Error, Debug)]
4 #[error]
5 pub struct MyError;
6
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 }