2 // Example taken from RFC 1238 text
4 // https://github.com/rust-lang/rfcs/blob/master/text/1238-nonparametric-dropck.md
5 // #examples-of-code-that-must-continue-to-work
9 struct Concrete<'a>(u32, Cell<Option<&'a Concrete<'a>>>);
12 let mut data = Vec::new();
13 data.push(Concrete(0, Cell::new(None)));
14 data.push(Concrete(0, Cell::new(None)));
16 data[0].1.set(Some(&data[1]));
17 data[1].1.set(Some(&data[0]));