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

12 lines
301 B
Plaintext
Raw Normal View History

2017-05-27 12:58:52 -05:00
error[E0596]: cannot borrow immutable local variable `key` as mutable
2016-11-02 01:15:02 -05:00
--> $DIR/issue-34337.rs:16:14
|
16 | get(&mut key);
| ^^^
| |
| try removing `&mut` here
| cannot reborrow mutably
error: aborting due to previous error(s)
2016-11-02 01:15:02 -05:00