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 fefab49 commit 4472178Copy full SHA for 4472178
stdlib/public/core/CommandLine.swift
@@ -61,4 +61,7 @@ public enum CommandLine {
61
= (0..<Int(argc)).map { String(cString: _unsafeArgv[$0]!) }
62
}
63
64
+@available(*, unavailable)
65
+extension CommandLine : _BitwiseCopyable {}
66
+
67
#endif // SWIFT_STDLIB_HAS_COMMANDLINE
test/Sema/bitwise_copyable_2.swift
@@ -36,3 +36,5 @@ func passInternalUsableStruct(_ s: InternalUsableStruct) { take(s) } // expected
36
// expected-note@-8{{where_requirement_failure_one_subst}}
37
38
func passMemoryLayout<T>(_ m: MemoryLayout<T>) { take(m) } // expected-error{{conformance_availability_unavailable}}
39
40
+func passCommandLine(_ m: CommandLine) { take(m) } // expected-error{{conformance_availability_unavailable}}
0 commit comments