Open nervenes opened 1 month ago
looks like ~Copyable
is what's causing the issue?
struct User: ~Copyable {
var name: String
}
let newUser = User(name: "Anonymous")
this errors out as well, with the same exact error as above.
noncopyable structs are supported since 5.9 according to this https://github.com/swiftlang/swift-evolution/blob/main/proposals/0390-noncopyable-structs-and-enums.md
further experimenting, it looks like it's a problem with xcode playgrounds as this code works in a regular swift package. where should i report this, or will someone from the swift team carry the report over to the xcode team?
Description
I was playing around in Xcode playground with swift 5.10 to learn more about the ownership aspect of swift, so i tried fiddling with noncopyable types and the consuming keyword and ended up with this error:
i tried running the suggested command
log enable lldb expr
in the folder the playground is at, butlog
doesn't seem to have a commandenable
:thinking:Reproduction
Expected behavior
run as expected
Environment
swift-driver version: 1.90.11.1 Apple Swift version 5.10 (swiftlang-5.10.0.13 clang-1500.3.9.4) Target: arm64-apple-macosx14.0
Additional information
No response