Rust Compiler Midlife Crisis
Rust is absolutely superior programming language. It is so good that its compiler has a midlife crisis. async_dummy() ---------- expected because of this } else { async_dummy2() ^^^^^^^^^^^^^^^ expected future, found a different future }; |____- "if" and "else" have incompatible types = note: distinct uses of 'impl Trait' result in different opaque types help: consider 'await'ing on both Future's
A humorous programming meme praises Rust while showing a compiler error caused by incompatible futures in an if/else expression. The punchline is that Rust’s strict type system produces an absurdly dramatic “midlife crisis” over two different future types, so programmers share it when joking about difficult compiler errors. EN: A humorous programming meme praises Rust while showing a compiler error caused by incompatible futures in an if/else expression. The punchline is that Rust’s strict type system produces an absurdly dramatic “midlife crisis” over two different future types, so programmers share it when joking about difficult compiler errors.
code screenshot / скриншот кодаRust programming language / язык программирования Rustcompiler error / ошибка компилятораterminal-style code panel / панель кода в стиле терминалаmonospaced text / моноширинный текстorange highlighted error / ошибка, выделенная оранжевымif/else expression / выражение if/elseasync function / асинхронная функцияfuture type / тип Futureblack background / чёрный фон
- @ithueti / 14953 2025-01-01
- Type
- image
- Size
- 800×708 · 62.6 KiB
- Mood
- sarcastic, absurd
- Language
- en
- Added