struct Point: ~Copyable {
var x, y: Int
}
let p1 = Point(x: 1, y: 2)
//把原实例 p1 移动到 p2
let p2 = p1
print("p2 is (\(p2.x), \(p2.y))")
//print("p2 is (\(p1.x), \(p1.y))") <- Error
| An instance of a noncopyable type always has unique ownership, unlike normal Swift types which can be freely copied. |