We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05113a6 commit 02ada80Copy full SHA for 02ada80
test/Unsafe/safe.swift
@@ -89,7 +89,7 @@ func returnsExistentialP() -> any P {
89
90
// FIXME: Should work even if the IteratorProtocol conformance is safe
91
struct UnsafeAsSequence: @unsafe Sequence, @unsafe IteratorProtocol {
92
- mutating func next() -> Int? { nil }
+ @unsafe mutating func next() -> Int? { nil }
93
}
94
95
func testUnsafeAsSequenceForEach() {
0 commit comments