Мы тоже бываем на привязи
Мы тоже бываем на привязи: fn main() { let s1 = String::from("hello"); let s2 = s1; println!("{}, world!", s1); println!("{}, world!", s2); } error[E0382]: borrow of moved value: `s1` --> src/main.rs:5:28
На верхней части мема показан код на Rust, где переменная s1 перемещается в s2, а затем повторно используется, вызывая ошибку borrow of moved value. Внизу несколько животных ползут на цепях, что обыгрывает идею «быть на привязи» и подходит как реакция на ограничения, зависимости или строгие правила программирования. EN: The top part of the meme shows Rust code where the variable s1 is moved into s2 and then used again, causing a “borrow of moved value” error. Below, several animals crawl on chains, playing on the idea of being “tethered” and making this suitable as a reaction to restrictions, dependencies, or strict programming rules.
Rust code / код на Rustcomputer error message / сообщение об ошибке компьютераterminal window / окно терминалаprogramming text / текст программыchained animals / животные на цепяхanimal harnesses / шлейки для животныхmetal chains / металлические цепиblue floor / синий полred wall / красная стенаorange-brown animals / оранжево-коричневые животныеleashes / поводки
- @profunctor_io / 4254 2020-03-26
- Type
- image
- Size
- 800×795 · 152.8 KiB
- Mood
- абсурдный, саркастичный
- Language
- ru
- Added