Skip to content

Commit 929836d

Browse files
committed
Fix Fix-it location
1 parent 5412419 commit 929836d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/Unsafe/safe.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ func testKeyPath() {
140140
func takesAutoclosure<T>(_ body: @autoclosure () -> T) { }
141141

142142
func testAutoclosure() {
143-
// expected-warning@+1{{expression uses unsafe constructs but is not marked with 'unsafe'}}{{20-20=unsafe }}
143+
// expected-warning@+1{{expression uses unsafe constructs but is not marked with 'unsafe'}}{{3-3=unsafe }}
144144
takesAutoclosure(unsafeFunction()) // expected-note{{reference to unsafe global function 'unsafeFunction()'}}
145145

146146
unsafe takesAutoclosure(unsafeFunction())

0 commit comments

Comments
 (0)