rust-lang/rust-by-example

While_let example doesn't work

jsedivec opened this issue · 1 comments

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.

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