Update errors.md

添加缺失的`dyn`关键字
pull/1068/head
Yumeoto Zorin 3 years ago committed by GitHub
parent 212526cd31
commit 5b4cdbf091
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -277,7 +277,7 @@ fn main() {
use std::fmt::{Debug, Display};
pub trait Error: Debug + Display {
fn source(&self) -> Option<&(Error + 'static)> { ... }
fn source(&self) -> Option<&(dyn Error + 'static)> { ... }
}
```

Loading…
Cancel
Save