Guest User

Untitled

a guest
Oct 22nd, 2018
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.36 KB | None | 0 0
  1. #![feature(test)]
  2. extern crate test;
  3.  
  4. #[inline(never)]
  5. fn pv(v: Vec<i32>) {
  6. test::black_box(v);
  7. }
  8.  
  9. fn pvr(v: &Vec<i32>) {
  10. println!("{:?}", v);
  11. }
  12.  
  13. fn main() {
  14. let v = vec![1, 2, 3];
  15. pvr(&v);
  16. pv(v);
  17. }
Add Comment
Please, Sign In to add comment