use lists::dl_list; /// Creates a new `DoublyLinkedList`, and then adds all elements together into a sum. fn main() { let list = dl_list![1, 2, 3, 4, 5]; let sum = list.into_iter().sum::(); assert_eq!(sum, 15); }