Guest User

Untitled

a guest
Jun 17th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.11 KB | None | 0 0
  1. fn foo(_: &[u8]) {}
  2.  
  3. fn main() {
  4. let x: Vec<u8> = vec![0u8, 1u8, 2u8];
  5. foo(&x);
  6. foo(&[1, 2, 3]);
  7. }
Add Comment
Please, Sign In to add comment