3 ms·
The `?` operator doesn't desugar to the the `try!` macro, it uses the `Try` trait. https://doc.rust-lang.org/std/ops/trait.Try.html https://doc.rust-lang.org/s
by Measter 5y ago
The `?` operator doesn't desugar to the the `try!` macro, it uses the `Try` trait.
https://doc.rust-lang.org/std/ops/trait.Try.html https://doc.rust-lang.org/std/ops/trait.Try.html
- brabel 5y agoAh, right... but as far as I know, it's the exact same behaviour, at least currently... reading the docs for the try macro, however, is what made me finally understand the behaviour of the `?` operator (e.g. how it can "magically" convert error types).