mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 09:14:20 +00:00
41e8d152dc
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
12 lines
440 B
Plaintext
12 lines
440 B
Plaintext
error: lifetime may not live long enough
|
|
--> $DIR/issue-44454-3.rs:17:15
|
|
|
|
|
LL | fn make_static<'a, T>(t: &'a T) -> &'static T {
|
|
| -- lifetime `'a` defined here
|
|
LL | let x: <dyn Animal<&'a T> as Projector>::Foo = t;
|
|
LL | let any = generic::<dyn Animal<&'a T>, &'a T>(x);
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ requires that `'a` must outlive `'static`
|
|
|
|
error: aborting due to 1 previous error
|
|
|