4 ms·
You can (kind of) emulate linear types by making `drop()` unlinkable[0]. Of course, I wouldn't recommend doing this since the error messages are awful and give
by Nullabillity 3y ago
You can (kind of) emulate linear types by making `drop()` unlinkable[0]. Of course, I wouldn't recommend doing this since the error messages are awful and give no explanation at all of where the actual problem is...
[0]: https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=d6004cc32fa199c118378c1e984cb580 https://play.rust-lang.org/?version=stable&mode=debug&editio...
- klabb3 3y agoHaha never seen that one before! Unfortunately it’s pretty radioactive, couldn’t even box that thing.