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.
1 parent 0287d65 commit 3e3e93bCopy full SHA for 3e3e93b
test/SILOptimizer/moveonly_correct.swift
@@ -23,4 +23,17 @@ public struct M_109232806: ~Copyable {
23
}
24
public func test_109232806(m: borrowing M_109232806) {
25
_ = m.y
26
+}
27
+
28
29
+// rdar://162749287
30
+struct DonutEventHandler: ~Copyable {
31
+ mutating func deliciouslyDo<Result>(
32
+ operation: (inout Self) async throws -> Result,
33
+ withHandler handler: (Int) async throws -> Void
34
+ ) async rethrows -> Result {
35
+ return try await withoutActuallyEscaping(handler) { escapingHandler in
36
+ return try await operation(&self)
37
+ }
38
39
0 commit comments