2017-05-27 17:58:52 +00:00
|
|
|
error[E0596]: cannot borrow immutable local variable `key` as mutable
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/issue-34337.rs:6:14
|
2016-11-02 06:15:02 +00:00
|
|
|
|
|
2018-02-23 00:42:32 +00:00
|
|
|
LL | get(&mut key); //~ ERROR cannot borrow
|
2016-11-02 06:15:02 +00:00
|
|
|
| ^^^
|
|
|
|
| |
|
|
|
|
| cannot reborrow mutably
|
2017-07-05 16:58:22 +00:00
|
|
|
| try removing `&mut` here
|
2016-11-02 06:15:02 +00:00
|
|
|
|
2017-07-02 10:49:30 +00:00
|
|
|
error: aborting due to previous error
|
2016-11-02 06:15:02 +00:00
|
|
|
|
2018-03-03 14:59:40 +00:00
|
|
|
For more information about this error, try `rustc --explain E0596`.
|