1 // Check that we validate associated type bounds for trait objects
4 type Y: Into<&'static str> + From<&'a str>;
7 fn f<'a, T: X<'a> + ?Sized>(s: &'a str) -> &'static str {
14 let s = String::from("abcdef");
15 z = f::<dyn X<Y = &str>>(&s);
16 //~^ ERROR `s` does not live long enough