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 bd7d3ec commit 90021ddCopy full SHA for 90021dd
test/Sema/lifetime_attr.swift
@@ -59,3 +59,7 @@ do {
59
t[keyPath: \.v2] // expected-error {{key path cannot refer to nonescapable type 'Test'}} expected-error {{key path cannot refer to nonescapable type 'NE'}}
60
}
61
62
+
63
+// rdar://146401190 ([nonescapable] implement non-inout parameter dependencies)
64
+@lifetime(span: borrow holder)
65
+func testParameterDep(holder: Holder, span: Span<Int>) {} // expected-error {{lifetime-dependent parameter must be 'inout'}}
0 commit comments