mirror of
https://github.com/haraldh/chainerror.git
synced 2025-06-07 00:24:42 +02:00
deploy: 1d43a39c61
This commit is contained in:
parent
bc07729890
commit
12caec03a0
18 changed files with 28810 additions and 256 deletions
|
@ -335,7 +335,7 @@
|
|||
}
|
||||
}
|
||||
|
||||
fn main() -> Result<(), Box<std::error::Error + Send + Sync>> {
|
||||
fn main() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
|
||||
use mycrate::func1;
|
||||
use mycrate::ErrorKind;
|
||||
use std::error::Error;
|
||||
|
@ -350,7 +350,7 @@ fn main() -> Result<(), Box<std::error::Error + Send + Sync>> {
|
|||
}
|
||||
|
||||
eprintln!();
|
||||
let mut s: &Error = &e;
|
||||
let mut s: &dyn Error = &e;
|
||||
while let Some(c) = s.source() {
|
||||
if let Some(ioerror) = c.downcast_ref::<io::Error>() {
|
||||
eprintln!("caused by: std::io::Error: {}", ioerror);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue