Attempt to copy noncopyable type leads to error asking to submit a bug. #78590
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
triage needed
This issue needs more specific labels
Description
I encountered a compiler error when implementing a protocol I named
File
with a~Copyable
constraint. The error occurs in the followingMockResource
struct, which conforms to theFile
protocol and attempts to initialise with a noncopyable enclosing folder type.Specifically, the compiler throws an error. “Copy of noncopyable typed value. This is a compiler bug. Please file a bug with a small example of the bug".
Reproduction
Error message: Copy of noncopyable typed value. This is a compiler bug. Please file a bug with a small example of the bug.
Expected behavior
The compiler doesn't ask me to file a bug.
Environment
swift-driver version: 1.115.1 Apple Swift version 6.0.3 (swiftlang-6.0.3.1.10 clang-1600.0.30.1)
Target: arm64-apple-macosx15.0
Additional information
No response
The text was updated successfully, but these errors were encountered: