]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #33386 - cramertj:E0504, r=steveklabnik
authorSteve Klabnik <steve@steveklabnik.com>
Wed, 11 May 2016 13:27:43 +0000 (09:27 -0400)
committerSteve Klabnik <steve@steveklabnik.com>
Wed, 11 May 2016 13:27:43 +0000 (09:27 -0400)
Add detailed error explanation for E0504

Part of #32777

1  2 
src/librustc_borrowck/diagnostics.rs

index 8d9b88e899be26974252f228d82dc0eac5be83d2,1802ab43161fbc4ca4086bfcf936442533a1e733..0687faa112f5e9efbaf28f46e1dffac2389dfe87
@@@ -756,8 -765,8 +860,7 @@@ register_diagnostics! 
      E0500, // closure requires unique access to `..` but .. is already borrowed
      E0502, // cannot borrow `..`.. as .. because .. is also borrowed as ...
      E0503, // cannot use `..` because it was mutably borrowed
-     E0504, // cannot move `..` into closure because it is borrowed
      E0505, // cannot move out of `..` because it is borrowed
      E0508, // cannot move out of type `..`, a non-copy fixed-size array
 -    E0509, // cannot move out of type `..`, which defines the `Drop` trait
      E0524, // two closures require unique access to `..` at the same time
  }