You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the autocxx generated rust code will have missing lifetime specifiers:
�[0m�[31m |fn getInner (outer : Pin < & mut A >) -> Pin < & mut B_C > ;
�[0m�[31m | ^ expected named lifetime parameter
�[0m�[31m |
�[0m�[31m = help: this function's return type contains a borrowed value, but there is no value for it to be borrowed from
�[0m�[31mhelp: consider using the `'static` lifetime, but this is uncommon unless you're returning a borrowed value from a `const` or a `static`
The text was updated successfully, but these errors were encountered:
BabaBert
added a commit
to BabaBert/autocxx
that referenced
this issue
Apr 9, 2024
So the issue seems to be that the compiler can't derive the lifetime in this case. CXX generates the implementation differently for concrete types, and therefore Rusts elision rules aren't applicable.
This might be an edge case but when a function returnr a reference to an innner templated member of an outer class or struct like this:
with macro usage like this:
the autocxx generated rust code will have missing lifetime specifiers:
The text was updated successfully, but these errors were encountered: