Skip to content

Instantly share code, notes, and snippets.

@rust-play
Created December 11, 2018 18:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save rust-play/5b31588664f5a44828f143ec916b2d30 to your computer and use it in GitHub Desktop.
Save rust-play/5b31588664f5a44828f143ec916b2d30 to your computer and use it in GitHub Desktop.
Code shared from the Rust Playground
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