2018-02-07 21:35:35 -06:00
|
|
|
error[E0499]: cannot borrow `i` as mutable more than once at a time
|
|
|
|
--> $DIR/E0499.rs:14:22
|
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | let mut x = &mut i;
|
2018-02-07 21:35:35 -06:00
|
|
|
| - first mutable borrow occurs here
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | let mut a = &mut i; //~ ERROR E0499
|
2018-02-07 21:35:35 -06:00
|
|
|
| ^ second mutable borrow occurs here
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | }
|
2018-02-07 21:35:35 -06:00
|
|
|
| - first borrow ends here
|
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
2018-02-19 14:40:25 -06:00
|
|
|
If you want more information on this error, try using "rustc --explain E0499"
|