Skip to content

Commit d9d7774

Browse files
committed
[BitwiseCopyable] Describe inference suppression.
1 parent ad5ab9b commit d9d7774

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

proposals/nnnn-bitwise-copyable.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,15 @@ public struct Coordinate3 {
168168
```
169169
to `BitwiseCopyable`.
170170

171+
### Suppressing inferred conformance
172+
173+
To suppress the inference of `BitwiseCopyable`, a conformance can explicitly be made unavailable:
174+
175+
```
176+
@available(*, unavailable)
177+
extension Coordinate4 : BitwiseCopyable {}
178+
```
179+
171180
### Standard library API improvements
172181

173182
The standard library includes a load method on both `UnsafeRawPointer` and `UnsafeMutableRawPointer`

0 commit comments

Comments
 (0)