2019-04-22 02:40:08 -05:00
|
|
|
error[E0596]: cannot borrow data in a `&` reference as mutable
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/index-mut-help-with-impl.rs:9:5
|
2018-08-30 17:54:04 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | Index::index(&v, 1..2).make_ascii_uppercase();
|
2018-08-30 17:54:04 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^ cannot borrow as mutable
|
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0596`.
|