1 #![feature(specialization)] //~ WARN the feature `specialization` is incomplete
3 // Regression test for #52050: when inserting the blanket impl `I`
4 // into the tree, we had to replace the child node for `Foo`, which
5 // led to the structure of the tree being messed up.
7 use std::iter::Iterator;
9 trait IntoPyDictPointer { }
13 impl Iterator for Foo {
15 fn next(&mut self) -> Option<()> {
20 impl IntoPyDictPointer for Foo { }
22 impl<I> IntoPyDictPointer for I
28 impl IntoPyDictPointer for () //~ ERROR conflicting implementations