blob: 045a43548dcaa1768e3678d4867a7fda037919d5 [file] [log] [blame]
// Test that no help message is emitted that suggests renaming the
// associated type from a non-local trait
pub trait NewIter: Iterator {
type Item;
}
impl<T> Clone for Box<dyn NewIter<Item = T>> {
//~^ ERROR the value of the associated type `Item` in `Iterator` must be specified
fn clone(&self) -> Self {
unimplemented!();
}
}
pub fn main() {}