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