daily pastebin goal
11%
SHARE
TWEET

Untitled

a guest Mar 26th, 2019 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. enum List<'a> {
  2.     Cons(i32, &'a List<'a>),
  3.     Nil,
  4. }
  5.  
  6. fn main() {
  7.     let x = List::Cons(3, &List::Nil);
  8. }
  9.  
  10. fn list(x: i32) -> List<'static> {
  11.     List::Cons(x, &List::Nil)
  12. }
  13.  
  14. fn list2(x: i32, y: i32) -> List<'static> {
  15.     List::Cons(x, &List::Cons(y, &List::Nil))
  16. }
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