Created
December 11, 2018 18:03
-
-
Save rust-play/5b31588664f5a44828f143ec916b2d30 to your computer and use it in GitHub Desktop.
Code shared from the Rust Playground
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fn main() { | |
let n = 0; | |
let val = loop { | |
if n == 0 { | |
break (1, "done"); | |
} | |
}; | |
println!("val: {:?}", val) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment