func foo(a: consuming Int) { take(&a) } func take(_ x: inout Int) {}
func foo(a: Int) { // ERROR: Cannot pass immutable value as inout argument: 'a' is a 'let' constant take(&a) } func take(_ x: inout Int) {}