2 ms·
> what would happen if that Rust 2015 called `description` on that error if Rust 202X didn't require/allow defining the method `description`? It's already not
by est31 7y ago
> what would happen if that Rust 2015 called `description` on that error if Rust 202X didn't require/allow defining the method `description`?
It's already not required to be defined. Since 1.27.0 there is a default implementation that contains a "description is deprecated" msg.
https://doc.rust-lang.org/1.42.0/src/std/error.rs.html#139 https://doc.rust-lang.org/1.42.0/src/std/error.rs.html#139