News for hackers. Stuff that matters.
Re:A half-hour to learn Rust by AlanSE on Wednesday August 23, 2023 @01:46PM (#37239609)
Can someone explain to me where the feeling_lucky variables comes from in the match example? I don't get it. The variable isn't defined anywhere in the relevant scope.
Re:A half-hour to learn Rust by steveklabnik on Wednesday August 23, 2023 @01:54PM (#37239729)
It's not a full example, that code would not compile because that variable is not defined.