Skip to content

Commit 6d1c756

Browse files
committed
[NFC] Update test/Sema/moveonly_sendable.swift for diagnostics changes.
1 parent 976d921 commit 6d1c756

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/Sema/moveonly_sendable.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ func processFiles(_ a: A, _ anotherFile: borrowing FileDescriptor) async {
4848
await a.takeMaybeFile(.available(anotherFile))
4949
_ = A(.available(anotherFile))
5050

51-
let ns = await a.getRef() // expected-warning {{non-sendable type 'NotSendableMO' returned by implicitly async call to actor-isolated function cannot cross actor boundary}}
51+
let ns = await a.getRef() // expected-warning {{non-sendable result type 'NotSendableMO' cannot be sent from actor-isolated context in call to instance method 'getRef()'}}
5252
await takeNotSendable(ns) // expected-complete-warning {{passing argument of non-sendable type 'NotSendableMO' outside of main actor-isolated context may introduce data races}}
5353

5454
switch (await a.giveFileDescriptor()) {

0 commit comments

Comments
 (0)