]>
Commit | Line | Data |
---|---|---|
48663c56 XL |
1 | error[E0308]: mismatched types |
2 | --> $DIR/issue-50716.rs:14:9 | |
8faf50e0 | 3 | | |
532ac7d7 | 4 | LL | let _x = *s; |
48663c56 XL |
5 | | ^^ lifetime mismatch |
6 | | | |
c295e0f8 XL |
7 | = note: expected type `<<&'a T as A>::X as Sized>` |
8 | found type `<<&'static T as A>::X as Sized>` | |
9 | note: the lifetime `'a` as defined here... | |
48663c56 XL |
10 | --> $DIR/issue-50716.rs:9:8 |
11 | | | |
12 | LL | fn foo<'a, T: 'static>(s: Box<<&'a T as A>::X>) | |
13 | | ^^ | |
14 | = note: ...does not necessarily outlive the static lifetime | |
8faf50e0 XL |
15 | |
16 | error: aborting due to previous error | |
17 | ||
48663c56 | 18 | For more information about this error, try `rustc --explain E0308`. |