]>
Commit | Line | Data |
---|---|---|
0bf4aa26 | 1 | error: unsatisfied lifetime constraints |
8faf50e0 XL |
2 | --> $DIR/issue-50716.rs:25:14 |
3 | | | |
4 | LL | fn foo<'a, T: 'static>(s: Box<<&'a T as A>::X>) | |
0bf4aa26 | 5 | | -- lifetime `'a` defined here |
8faf50e0 XL |
6 | ... |
7 | LL | let _x = *s; //~ ERROR | |
0bf4aa26 | 8 | | ^^ proving this value is `Sized` requires that `'a` must outlive `'static` |
8faf50e0 XL |
9 | |
10 | error: aborting due to previous error | |
11 |