Skip to content

Instantly share code, notes, and snippets.

@rust-play
Created January 14, 2020 16:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rust-play/e5fdf2b434330cbf305da39dd5270b79 to your computer and use it in GitHub Desktop.
Save rust-play/e5fdf2b434330cbf305da39dd5270b79 to your computer and use it in GitHub Desktop.
Code shared from the Rust Playground
#![allow(unused)]
fn main() {
let vec = vec![1, 2, 3, 4, 5];
println!("Remaining: {:?}", &vec.last().unwrap());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment