#![allow(unused_variables)] fn main() { use std::collections::LinkedList; let mut dl = LinkedList::new(); assert_eq!(dl.front(), None); dl.push_front(1); assert_eq!(dl.front(), Some(& 1)); match dl.front_mut() { None => {} Some(x) => *x = 5, } assert_eq!(dl.front(), Some(& 5)); }