1 // Test that we don't get an error with `dyn Bar` in an impl Trait
2 // when there are multiple inputs. The `dyn Bar` should default to `+
3 // 'static`. This used to erroneously generate an error (cc #62517).
7 trait Foo { type Item: ?Sized; }
14 fn foo(x: &str, y: &str) -> impl Foo<Item = dyn Bar> { () }