Skip to content

Instantly share code, notes, and snippets.

@rust-play
Created August 25, 2019 16:19
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/2cf0ba6e920c01abdeb90bee0217ae04 to your computer and use it in GitHub Desktop.
Save rust-play/2cf0ba6e920c01abdeb90bee0217ae04 to your computer and use it in GitHub Desktop.
Code shared from the Rust Playground
fn main() {
let b: &'static [u8; 0] = b"";
let s: &[u8] = b.as_ref();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment