We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b181ea4 commit f5087aaCopy full SHA for f5087aa
doc/rust.md
@@ -1852,25 +1852,6 @@ mutate(copy v); // Pass a copy
1852
assert v[0] == 1; // Original was not modified
1853
~~~~
1854
1855
-### Unary move expressions
1856
-
1857
-~~~~~~~~{.ebnf .gram}
1858
-move_expr : "move" expr ;
1859
-~~~~~~~~
1860
1861
-This is used to indicate that the referenced _lval_ must be moved out,
1862
-rather than copied, when evaluating this expression. It will only have
1863
-an effect when the expression is _stored_ somewhere or passed to a
1864
-function that takes ownership of it.
1865
1866
-~~~~
1867
-let x = ~10;
1868
-let y = [move x];
1869
1870
1871
-Any access to `x` after applying the `move` operator to it is invalid,
1872
-since it is no longer initialized at that point.
1873
1874
### Call expressions
1875
1876
~~~~~~~~ {.abnf .gram}
0 commit comments