3 #![allow(non_snake_case)]
4 #![allow(non_camel_case_types)]
6 use std::cell::RefCell;
8 static S: &'static str = "str";
12 next: Option<Box<RefCell<list<T>>>>
15 impl<T:'static> list<T> {
16 pub fn addEnd(&mut self, element: T) {
22 self.next = Some(Box::new(RefCell::new(newList)));
31 println!("{}", ls.element);