Rust Compiler Rejects Social Interaction
1 trait SocialInteraction { } 2 3 fn try_sex<T: SocialInteraction>(person: &mut T) { println!("good"); } 4 5 struct Me; 6 7 impl !SocialInteraction for Me {} 8 9 fn main() { 10 try_sex(&mut Me); 11 } error[E0277]: `Me` cannot have sex --> src/main.rs:12:13 5 | fn try_sex<T: SocialInteraction>(person: &mut T) { println!("good"); } | ^^^^^^^^^^^^^^^^^^^ required by this bound in `try_sex` ... 12 | try_sex(&mut Me); | ^^^^^^^ `Me` cannot have sex | = help: the trait `SocialInteraction` is not implemented for `Me`
A Rust code snippet defines a person who does not implement the SocialInteraction trait, then tries to have sex with them. The compiler rejects it with the absurd error “Me cannot have sex,” joking about being too socially inept or unavailable for intimacy. It is used as a self-deprecating reaction to loneliness, awkwardness, or failed romantic interaction.
code editor screenshot / скриншот редактора кодаRust source code / исходный код Rustterminal error message / сообщение об ошибке в терминалеcompiler diagnostics / диагностика компилятораmonospace text / моноширинный текстdark theme / тёмная темаred error text / красный текст ошибкиcyan highlighted code / подсвеченный голубым кодcaret markers / указатели-стрелкиprogramming syntax / синтаксис программирования
#rust#programming#программирование#coding#кодинг#compiler error#ошибка компилятора#social interaction#социальное взаимодействие#sex joke#шутка про секс#loneliness#одиночество#awkward#неловкость#self-deprecating#самоирония#reaction#реакция#screenshot#скриншот#developer meme#мем программистов#короче#programmer humor#юмор программистов
- @profunctor_io / 4319 2020-04-02
- @gentoomemes / 3746 2023-04-08
- Type
- image
- Size
- 800×503 · 50.3 KiB
- Mood
- self-deprecating, absurd
- Language
- en
- Added