From f5087aa64b3f8263b61431fbfc323fcaa356bc5b Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Tue, 20 Mar 2012 15:19:42 -0700 Subject: [PATCH] doc: Remove unary move operator from language ref. Closes #2032 --- doc/rust.md | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/doc/rust.md b/doc/rust.md index 0572287c692..f664f03f708 100644 --- a/doc/rust.md +++ b/doc/rust.md @@ -1852,25 +1852,6 @@ mutate(copy v); // Pass a copy assert v[0] == 1; // Original was not modified ~~~~ -### Unary move expressions - -~~~~~~~~{.ebnf .gram} -move_expr : "move" expr ; -~~~~~~~~ - -This is used to indicate that the referenced _lval_ must be moved out, -rather than copied, when evaluating this expression. It will only have -an effect when the expression is _stored_ somewhere or passed to a -function that takes ownership of it. - -~~~~ -let x = ~10; -let y = [move x]; -~~~~ - -Any access to `x` after applying the `move` operator to it is invalid, -since it is no longer initialized at that point. - ### Call expressions ~~~~~~~~ {.abnf .gram}