Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

Untitled

a guest Jun 14th, 2018 60 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. #[derive(Clone)]
  2. enum TestEnum {
  3.     One,
  4.     Two
  5. }
  6.  
  7. fn bar(a: Vec<TestEnum>, b: TestEnum) {
  8. }
  9.  
  10. fn foo(a: Vec<TestEnum>) {
  11.     for i in a {
  12.         bar(a.clone(), i);
  13.     }
  14. }
  15.  
  16. fn main() {
  17.     let a: Vec<TestEnum> = vec![TestEnum::One, TestEnum::Two];
  18.     foo(a);
  19. }
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