Skip to content

Commit 103ede8

Browse files
committed
Updated Error to inherit from Send+Any
1 parent bada81d commit 103ede8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

active/0000-error-chaining.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ The standard `Error` trait follows very the widespread pattern found
152152
in `Exception` base classes in many languages:
153153

154154
```rust
155-
pub trait Error {
155+
pub trait Error: Send + Any {
156156
fn description(&self) -> &str;
157157

158158
fn detail(&self) -> Option<&str> { None }

0 commit comments

Comments
 (0)