1 error[E0308]: mismatched types
2 --> $DIR/issue-50716.rs:14:9
7 = note: expected type `std::marker::Sized`
8 found type `std::marker::Sized`
9 note: the lifetime 'a as defined on the function body at 9:8...
10 --> $DIR/issue-50716.rs:9:8
12 LL | fn foo<'a, T: 'static>(s: Box<<&'a T as A>::X>)
14 = note: ...does not necessarily outlive the static lifetime
16 error: aborting due to previous error
18 For more information about this error, try `rustc --explain E0308`.