https://users.rust-lang.org/t/cloning-anyhow-error/73357/8
Random frustration is always a learning opportunity!
#Rust users should remember that Errors can't get Clone'd! See this thread for explanation why.
@arichtman @jonn Plenty of examples where you can understand the reasons they are not that good. Lending from an Iterator or a closure for example is not possible for example. Range is not Copy even if bounds are. Bounded Range is even worse...
@manpacket @arichtman what matters to me is that Rust is LESS permissive rather than MORE permissive.
@jonn @arichtman absolutely. And things are slowly getting better too, at least the Range gets fixed in the next version. I hope lending from closures can be fixed as well - right now you have to do some cursed workarounds.
The change to new Range types seems unlikely to land in the 2024 edition though, given that it's not very far along..
@jonn I'm consistently impressed by how solid Rust's internal logic is. I'm often frustrated by it but it's never had a bad reason for the Why. Perhaps I'm just not deep enough yet. #RustLang #Rust