rust/src/test/ui/did_you_mean/issue-34337.stderr

13 lines
400 B
Plaintext
Raw Normal View History

2017-05-27 17:58:52 +00:00
error[E0596]: cannot borrow immutable local variable `key` as mutable
2016-11-02 06:15:02 +00:00
--> $DIR/issue-34337.rs:16:14
|
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
error: aborting due to previous error
2016-11-02 06:15:02 +00:00
2018-02-19 20:40:25 +00:00
If you want more information on this error, try using "rustc --explain E0596"