Closed
Description
I have no idea if an async
function that borrows across a yield point is compatible with Stacked Borrows. We should find out! I just am not sure how.
@cramertj @withoutboats I could use your help. :) What is a minimal example for code that creates a self-referential future and then runs it? Ideally with no dependencies beyond libstd but that might not be possible.^^ Also, if there are different cases/"kinds" of self-referential fields in futures, we should make sure we cover all of them.
rustc must test these things somehow, right? Might be worth looking into that, too.