With the new test function, we need to have access to the Iterator object. To avoid getting an error (E0599), the code at the start of the module should be:
mod test {
use super::List;
use super::Iterator;
Maybe this should be mentioned in the chapter?
With the new test function, we need to have access to the Iterator object. To avoid getting an error (E0599), the code at the start of the module should be:
Maybe this should be mentioned in the chapter?