Guest User

Untitled

a guest
Apr 25th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. #![crate_type = "lib"]
  2.  
  3. mod foo {
  4. /*
  5. pub struct Bar<'a, T: 'a> {
  6. _private: &'a T,
  7. }
  8. */
  9.  
  10. pub type Bar<'a, T> = &'a T;
  11. }
  12.  
  13. pub fn foobar(x: foo::Bar<i32>) {
  14. match x {
  15. foo::Bar { .. } => { }
  16. }
  17. }
Add Comment
Please, Sign In to add comment