☰
Debian Codegraph
@
1.4.4-1
/
/
.cargo
/
vendor
/
thiserror-1.0.59
/
tests
/
ui
/
invalid-input-impl-anyway.rs
☽
☼
.cargo/vendor/thiserror-1.0.59/tests/ui/invalid-input-impl-anyway.rs
code
plain
raw
GPL-2
1998-2015, Sourcefire, Inc.; 2002-2007, Tomasz Kojm <
[email protected]
>; 2006, Sensory Networks, Inc; 2007-2015, Cisco Systems, Inc; 2014-2018, Cisco and/or its affiliates
debian/copyright
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
}