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 288a7d9 commit b448ef1Copy full SHA for b448ef1
test/SILOptimizer/moveonly_builtins.swift
@@ -12,7 +12,7 @@ struct NC: ~Copyable {}
12
func checkPointerBuiltins(_ ptr: Builtin.RawPointer, _ value: consuming NC) {
13
Builtin.initialize(value, ptr)
14
#if ILLEGAL
15
- Builtin.copy(value) // expected-illegal-error {{noncopyable type 'NC' cannot be substituted for copyable generic parameter 'T' in 'copy'}}
+ Builtin.copy(value) // expected-illegal-error {{global function 'copy' requires that 'NC' conform to 'Copyable'}}
16
#endif
17
}
18
0 commit comments