rust-course/assets/writing-material/posts/to_resolved.md

10 lines
185 B

## unknown `into` behavior
```rust
let s: Box<dyn Error + Send + Sync> = "connection reset by peer".into();
```
this works because:
```rust
impl From<&'_ str> for Box<dyn Error>
```