// Test that we don't get an error with `dyn Object` in an impl Trait // when there are multiple inputs. The `dyn Object` should default to `+ // 'static`. This used to erroneously generate an error (cc #62517). // //@ check-pass trait Alpha {} trait Object {} impl Alpha for T {} fn alpha(x: &str, y: &str) -> impl Alpha { () } fn main() { }