Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

While_let example doesn't work #1808

Open
jsedivec opened this issue Jan 29, 2024 · 1 comment
Open

While_let example doesn't work #1808

jsedivec opened this issue Jan 29, 2024 · 1 comment
Labels

Comments

@jsedivec
Copy link

There is something wrong with the second example in the official docu for while let construct. When the code is run, following compiler error occurs:
image

The code is correct, since it is working on my local machine.

@linuxholic
Copy link

I guess editable rust code block need to have explicit fn main() wrapping block ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants