1 // Taken from https://github.com/rust-lang/rust/issues/44454#issue-256435333
3 trait Animal<X>: 'static {}
9 // `Y` implements `Animal<X>` so `Y` is 'static.
13 fn bar<'a>(_arg: &'a i32) {
14 foo::<dyn Animal<&'a i32>, &'a i32>() //~ ERROR: lifetime may not live long enough
17 fn baz<T: 'static + ?Sized>() {}