Skip to content

Commit 802a24b

Browse files
authored
Merge pull request #66154 from ktoso/fix-ci-patch-1
🍒 [5.9] Fix case mismatch in test error message expectation
2 parents 38786ba + 037624d commit 802a24b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/Distributed/distributed_actor_ban_owned_shared.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ distributed actor First {
1515
distributed func owned(_: __owned Param) async throws {} // expected-error{{cannot declare '__owned' argument '_' in distributed instance method 'owned'}}
1616
distributed func shared(_: __shared Param) async throws {} // expected-error{{cannot declare '__shared' argument '_' in distributed instance method 'shared'}}
1717
distributed func consuming(_: consuming Param) async throws {}
18-
// expected-error@-1{{Copyable types cannot be 'consuming' or 'borrowing' yet}}
18+
// expected-error@-1{{copyable types cannot be 'consuming' or 'borrowing' yet}}
1919
// expected-error@-2{{parameter '' of type '<<error type>>' in distributed instance method does not conform to serialization requirement 'Codable'}}
2020
}
2121

2222
func test(first: First) async throws {
2323
try await first.owned(.init())
2424
try await first.shared(.init())
25-
}
25+
}

0 commit comments

Comments
 (0)