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 af72e9b commit 8aec896Copy full SHA for 8aec896
test/Interpreter/rdar125864434.swift
@@ -0,0 +1,21 @@
1
+// RUN: %empty-directory(%t)
2
+// RUN: %target-build-swift %s -o %t/bin
3
+// RUN: %target-codesign %t/bin
4
+// RUN: %target-run %t/bin | %FileCheck %s
5
+
6
+// REQUIRES: executable_test
7
8
+protocol Boopable: ~Copyable {
9
+ func boop()
10
+}
11
12
+struct S: ~Copyable, Boopable {
13
+ func boop() { print("boop") }
14
15
16
+func check(_ b: borrowing any Boopable & ~Copyable) {
17
+ b.boop()
18
19
20
+// CHECK: boop
21
+check(S())
0 commit comments