SHARE
TWEET

Untitled

a guest Sep 17th, 2019 100 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. fn main() {
  2.     assert!(<[_]>::eq(&[1, 2, 3], &vec![1, 2, 3] as &[_]));
  3.  
  4.     // Compare without explicit type coersion causes a compile error
  5.     // assert!(<[_]>::eq(&[1, 2, 3], &vec![1, 2, 3]));
  6. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top