1 error: lifetime may not live long enough
2 --> $DIR/issue-50716.rs:14:14
4 LL | fn foo<'a, T: 'static>(s: Box<<&'a T as A>::X>)
5 | -- lifetime `'a` defined here
8 | ^^ proving this value is `Sized` requires that `'a` must outlive `'static`
10 error: aborting due to previous error