Chaining unwrap(..)
on temporaries raises a lifetime error
#22921
Labels
A-type-system
Area: Type system
Even if this example may look silly, it's the result of the simplification of a more complex structure.
There should be no reason for these constructs not to compile, should it ?
The full error message for the first construct does not really show what the problem might be:
The text was updated successfully, but these errors were encountered: