2019-04-07 10:07:36 -05:00
|
|
|
error: lifetime may not live long enough
|
2022-04-01 12:13:25 -05:00
|
|
|
--> $DIR/issue-50716.rs:14:14
|
2019-04-07 10:07:36 -05:00
|
|
|
|
|
|
|
|
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`
|
|
|
|
|
2023-11-21 09:44:16 -06:00
|
|
|
error: aborting due to 1 previous error
|
2019-04-07 10:07:36 -05:00
|
|
|
|