mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
41e8d152dc
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
12 lines
334 B
Plaintext
12 lines
334 B
Plaintext
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`
|
|
|
|
error: aborting due to 1 previous error
|
|
|