Re:My Struggles with Rust
by eternalban on Sunday May 07, 2017 @03:31PM
(#14287131)
expect[ing_error]("could not open the file")
[ Parent
| on HN ]
You're not expecting an error. On the contrary, you're expecting a value or throwing an error.
Re:My Struggles with Rust
by eternalban on Tuesday May 09, 2017 @08:32AM
(#14299425)
You're expecting specific errors.