Guest User

Untitled

a guest
Nov 21st, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. #[derive(Clone)]
  2. pub struct Event {
  3. title: String,
  4. }
  5.  
  6.  
  7.  
  8. fn main() {
  9. let event = vec![Event{title:"a".to_string()}, Event{title:"b".to_string()}, Event{title:"c".to_string()}];
  10. let evt = event.first().unwrap().clone();
  11. tho(evt);
  12. }
  13.  
  14. fn tho(evt: Event) {}
Add Comment
Please, Sign In to add comment