blob: 7b83e4beaf38750ca8c487f0c25e3f7ca9d491e7 [file] [log] [blame]
error: lifetime may not live long enough
--> $DIR/issue-50716.rs:14: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`
|
= help: consider replacing `'a` with `'static`
error: aborting due to previous error