2 // aux-build:issue-41053.rs
4 pub trait Trait { fn foo(&self) {} }
8 impl Iterator for Foo {
9 type Item = Box<dyn Trait>;
10 fn next(&mut self) -> Option<Box<dyn Trait>> {
11 extern crate issue_41053;
12 impl ::Trait for issue_41053::Test {
15 Some(Box::new(issue_41053::Test))
20 Foo.next().unwrap().foo();