os-rust/src/test/ui/borrowck/borrowck-anon-fields-tuple.nll.stderr

16 lines
483 B
Text
Raw Normal View History

2018-08-08 14:28:26 +02:00
error[E0499]: cannot borrow `y.0` as mutable more than once at a time
2018-12-25 08:56:47 -07:00
--> $DIR/borrowck-anon-fields-tuple.rs:27:10
2018-08-08 14:28:26 +02:00
|
LL | (ref mut a, _) => a
| --------- first mutable borrow occurs here
...
2019-03-11 23:18:35 +03:00
LL | (ref mut b, _) => b
2018-08-08 14:28:26 +02:00
| ^^^^^^^^^ second mutable borrow occurs here
...
LL | *a += 1;
| ------- first borrow later used here
2018-08-08 14:28:26 +02:00
2018-09-13 22:04:09 +01:00
error: aborting due to previous error
2018-08-08 14:28:26 +02:00
2018-09-13 22:04:09 +01:00
For more information about this error, try `rustc --explain E0499`.