We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3b497da + 6299e91 commit 140267dCopy full SHA for 140267d
spec/function.dd
@@ -1394,6 +1394,12 @@ int* mars(return ref int i)
1394
}
1395
---
1396
1397
+$(P If the function returns `void`, and the first parameter is `ref` or `out`, then
1398
+all subsequent `return ref` parameters are considered as being assigned to
1399
+the first parameter for lifetime checking.
1400
+The `this` reference parameter to a struct non-static member function is
1401
+considered the first parameter.)
1402
+
1403
$(P If there are multiple `return ref` parameters, the lifetime of the return
1404
value is the smallest lifetime of the corresponding arguments.)
1405
0 commit comments