ChatGPT produced a nearly correct implementation of a memory safe DoublyLinkedList in Rust, but it failed at avoiding fatal memory leaks by not properly using weak/strong reference downgrades/upgrades.