mirror of
https://github.com/dtolnay/thiserror.git
synced 2025-04-06 22:37:38 +03:00
Change span of as_dyn_error()
to point compile error at attribute.
This commit is contained in:
parent
f4eac7ef7b
commit
a49f7c603d
14 changed files with 209 additions and 8 deletions
11
tests/ui/transparent-enum-not-error.rs
Normal file
11
tests/ui/transparent-enum-not-error.rs
Normal file
|
@ -0,0 +1,11 @@
|
|||
use thiserror::Error;
|
||||
|
||||
#[derive(Error, Debug)]
|
||||
pub enum Error {
|
||||
#[error(transparent)]
|
||||
Other {
|
||||
message: String,
|
||||
}
|
||||
}
|
||||
|
||||
fn main() {}
|
Loading…
Add table
Add a link
Reference in a new issue