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).
10 fn item(&self) -> Box<Self::Item> { panic!() }
19 fn is_static<T>(_: T) where T: 'static { }
21 fn bar(x: &str) -> &impl Foo<Item = dyn Bar> { &() }
24 let s = format!("foo");