//@ run-pass #![feature(specialization)] //~ WARN the feature `specialization` is incomplete trait Iterator { fn next(&self); } trait WithAssoc { type Item; } impl<'a> WithAssoc for &'a () { type Item = &'a u32; } struct Cloned(#[allow(dead_code)] I); impl<'a, I, T: 'a> Iterator for Cloned where I: WithAssoc, T: Clone { fn next(&self) {} } impl<'a, I, T: 'a> Iterator for Cloned where I: WithAssoc, T: Copy { } fn main() { Cloned(&()).next(); }