kw move
Reserved keyword
The list of words: §1.4
Syntax
Receiver = [ "var" | "move" | "static" ] ;Lambda = [ "move" ] ( Ident | "(" [ LParams ] ")" ) "=>" Expr ;Grammar: App. A
Defined in
- 3.9 Copy and move — Copy types: primitives, str, bytes, Duration, Time and other time types, distinct/refined types over a Copy type, tuples and arrays of Copy
- 4.3 Construction and constructors — Literal. T{ f1: e1, f2, ..base }
- 4.5 impl and methods — Inside a method self and Self are available.
- 5.2 Precedence and associativity — Precedence and associativity
- 5.7 Lambdas and closures — .field and .method(args) in argument position are shorthand for a lambda with one parameter.
- 1.4 Keywords — Reserved (cannot be used as names)
Related diagnostics
use-after-move, bad-init, missing-field, must-close, positional-literal, sealed-literal, impl-foreign-type, unknown-method, chained-comparison