3 #![allow(non_snake_case)]
4 #![allow(non_camel_case_types)]
5 #![feature(box_syntax)]
7 use std::cell::RefCell;
9 static S: &'static str = "str";
13 next: Option<Box<RefCell<list<T>>>>
16 impl<T:'static> list<T> {
17 pub fn addEnd(&mut self, element: T) {
23 self.next = Some(box RefCell::new(newList));
32 println!("{}", ls.element);