Skip to content

Commit d3d9bc3

Browse files
committed
Update old/unused test to match listing.
1 parent 7b40a13 commit d3d9bc3

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

TSPL.docc/LanguageGuide/Concurrency.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1335,18 +1335,18 @@ a file descriptor isn't safe to send across concurrency domains.
13351335
<!--
13361336
- test: `suppressing-implied-sendable-conformance`
13371337
1338-
-> struct NonsendableTemperatureReading {
1339-
-> var measurement: Int
1338+
-> struct FileDescriptor {
1339+
-> let rawValue: CInt
13401340
-> }
13411341
---
13421342
-> @available(*, unavailable)
1343-
-> extension NonsendableTemperatureReading: Sendable { }
1344-
>> let nonsendable: Sendable = NonsendableTemperatureReading(measurement: 10)
1345-
!$ warning: conformance of 'NonsendableTemperatureReading' to 'Sendable' is unavailable; this is an error in Swift 6
1346-
!! let nonsendable: Sendable = NonsendableTemperatureReading(measurement: 10)
1343+
-> extension FileDescriptor: Sendable { }
1344+
>> let nonsendable: Sendable = FileDescriptor(rawValue: 10)
1345+
!$ warning: conformance of 'FileDescriptor' to 'Sendable' is unavailable; this is an error in Swift 6
1346+
!! let nonsendable: Sendable = FileDescriptor(rawValue: 10)
13471347
!! ^
1348-
!$ note: conformance of 'NonsendableTemperatureReading' to 'Sendable' has been explicitly marked unavailable here
1349-
!! extension NonsendableTemperatureReading: Sendable { }
1348+
!$ note: conformance of 'FileDescriptor' to 'Sendable' has been explicitly marked unavailable here
1349+
!! extension FileDescriptor: Sendable { }
13501350
!! ^
13511351
-->
13521352

0 commit comments

Comments
 (0)