File tree Expand file tree Collapse file tree 1 file changed +15
-15
lines changed
Sources/TSPL/TSPL.docc/LanguageGuide Expand file tree Collapse file tree 1 file changed +15
-15
lines changed Original file line number Diff line number Diff line change @@ -1137,21 +1137,21 @@ extension NonsendableTemperatureReading: Sendable { }
11371137```
11381138
11391139<!--
1140- - test: `suppressing-implied-sendable-conformance`
1141-
1142- -> struct NonsendableTemperatureReading {
1143- -> var measurement: Int
1144- -> }
1145- ---
1146- -> @available(*, unavailable)
1147- -> extension NonsendableTemperatureReading: Sendable { }
1148- >> let nonsendable: Sendable = NonsendableTemperatureReading(measurement: 10)
1149- !$ warning: conformance of 'NonsendableTemperatureReading' to 'Sendable' is unavailable; this is an error in Swift 6
1150- !! let nonsendable: Sendable = NonsendableTemperatureReading(measurement: 10)
1151- !! ^
1152- !$ note: conformance of 'NonsendableTemperatureReading' to 'Sendable' has been explicitly marked unavailable here
1153- !! extension NonsendableTemperatureReading: Sendable { }
1154- !! ^
1140+ - test: `suppressing-implied-sendable-conformance`
1141+
1142+ -> struct NonsendableTemperatureReading {
1143+ -> var measurement: Int
1144+ -> }
1145+ ---
1146+ -> @available(*, unavailable)
1147+ -> extension NonsendableTemperatureReading: Sendable { }
1148+ >> let nonsendable: Sendable = NonsendableTemperatureReading(measurement: 10)
1149+ !$ warning: conformance of 'NonsendableTemperatureReading' to 'Sendable' is unavailable; this is an error in Swift 6
1150+ !! let nonsendable: Sendable = NonsendableTemperatureReading(measurement: 10)
1151+ !! ^
1152+ !$ note: conformance of 'NonsendableTemperatureReading' to 'Sendable' has been explicitly marked unavailable here
1153+ !! extension NonsendableTemperatureReading: Sendable { }
1154+ !! ^
11551155-->
11561156
11571157In the code above,
You can’t perform that action at this time.
0 commit comments