Files
swift-mirror/test/Parse/move_expr_legacy.swift
Kavon Farvardin 2c7d9a5047 update tests given move-only types are enabled
the main things still left behind the experimental flag(s) are
- move-only classes (guarded by MoveOnlyClasses feature)
- noimplicitcopy
- the _borrow operator
2023-03-14 18:35:13 -07:00

7 lines
287 B
Swift

// RUN: %target-typecheck-verify-swift -disable-availability-checking -enable-experimental-move-only
// Temporary `_move` syntax is still parsed but raises a warning and fixit.
func oldMoveSyntax(x: String) {
_ = _move x // expected-warning{{renamed to 'consume'}} {{7-12=consume}}
}