davidmenggx wrote: @Sirraide could you please take a look at this? For clarity, should a note diagnostic be added to the first declaration of ownership_returns on the error case? https://github.com/llvm/llvm-project/pull/192339