Guest User

Untitled

a guest
Jul 20th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. trait X {}
  2.  
  3. #[derive(Default)]
  4. pub struct XX<'a> {
  5. _x : std::cell::Cell<Option<Box<X+'a>>>,
  6. //_y : Option<Box<X+'a>>,
  7. }
  8.  
  9. pub fn foo<'a>(_l : &'a XX<'a>) { }
  10.  
  11. fn main() {
  12. let g = XX::default();
  13. foo(&g);
  14. }
Add Comment
Please, Sign In to add comment