I have this trait and simple structure:
use std::path::{Path, PathBuf}; trait Foo { type Item: AsRef; type Iter: Iterator
In future, you'll want an associated type constructor for your lifetime 'a but Rust does not support that yet. See RFC 1598
'a