1 // Test that `dyn Bar<Item = XX>` uses `'static` as the default object
2 // lifetime bound for the type `XX`.
9 fn item(&self) -> Box<Self::Item> { panic!() }
18 fn is_static<T>(_: T) where T: 'static { }
20 // Here, we default to `dyn Bar + 'static`, and not `&'x dyn Foo<Item
22 fn bar(x: &str) -> &dyn Foo<Item = dyn Bar> { &() }
25 let s = format!("foo");