What is the output?
https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=4775a8597fe25e54bba4f8de37cfb00d
#rust #rustlang #rustquiz
@d_k_bo don't you get a compiler error? Is `let Bar = foo.bar() else { ...}` allowed syntax?
@ayhon it's a pretty new syntax. https://doc.rust-lang.org/stable/rust-by-example/flow_control/let_else.html(I couldn't even find something about it in The Book)
@d_k_bo I see. Learnt something new, thanks!
QOTO: Question Others to Teach Ourselves An inclusive, Academic Freedom, instance All cultures welcome. Hate speech and harassment strictly forbidden.