blob: 536f88085ded3aeda15f5372a371323af489e4f1 [file] [log] [blame]
error: lifetime may not live long enough
--> $DIR/issue-50716.rs:13:14
|
LL | fn foo<'a, T: 'static>(s: Box<<&'a T as A>::X>)
| -- lifetime `'a` defined here
...
LL | let _x = *s;
| ^^ proving this value is `Sized` requires that `'a` must outlive `'static`
error: aborting due to 1 previous error