]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #33412 - cramertj:E0389, r=Manishearth
authorSteve Klabnik <steve@steveklabnik.com>
Sat, 7 May 2016 19:35:18 +0000 (15:35 -0400)
committerSteve Klabnik <steve@steveklabnik.com>
Sat, 7 May 2016 19:35:18 +0000 (15:35 -0400)
Add detailed error explanation for E0389

Part of #32777

1  2 
src/librustc_borrowck/diagnostics.rs

index ba8ea024c26a8ac0ccb27afe6ddede2050da9c57,d2569f0f07449a8d0861d7f82365fe31fce3836c..03fb5260c39920a5246a59ec2bf53717c055812a
@@@ -594,8 -498,8 +658,7 @@@ http://doc.rust-lang.org/stable/book/re
  register_diagnostics! {
      E0385, // {} in an aliasable location
      E0388, // {} in a static location
-     E0389, // {} in a `&` reference
      E0500, // closure requires unique access to `..` but .. is already borrowed
 -    E0501, // cannot borrow `..`.. as .. because previous closure requires unique access
      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