It feels like this should be possible. Of course, you can work around this by using the 'static lifetime here instead of an arbitrary 'a. However, it would be nice to at least provide some better error messaging here if possible or document this as a shortcoming somewhere, as the current error is really misleading.
Consider the following example:
This results in the following error:
Rust handles this just fine, so this seems like an issue with
rstest
.It feels like this should be possible. Of course, you can work around this by using the
'static
lifetime here instead of an arbitrary'a
. However, it would be nice to at least provide some better error messaging here if possible or document this as a shortcoming somewhere, as the current error is really misleading.