2021-06-09 05:41:03 -05:00
|
|
|
error[E0491]: in type `&'static &'a ()`, reference has a longer lifetime than the data it references
|
|
|
|
--> $DIR/issue-86053-2.rs:8:39
|
|
|
|
|
|
|
|
|
LL | unsafe extern "C" fn ordering4<'a, F: H<&'static &'a ()>>(_: (), ...) {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: the pointer is valid for the static lifetime
|
2021-10-05 07:11:51 -05:00
|
|
|
note: but the referenced data is only valid for the lifetime `'a` as defined here
|
2021-06-09 05:41:03 -05:00
|
|
|
--> $DIR/issue-86053-2.rs:8:32
|
|
|
|
|
|
|
|
|
LL | unsafe extern "C" fn ordering4<'a, F: H<&'static &'a ()>>(_: (), ...) {}
|
|
|
|
| ^^
|
|
|
|
|
2023-11-21 09:44:16 -06:00
|
|
|
error: aborting due to 1 previous error
|
2021-06-09 05:41:03 -05:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0491`.
|