rust/tests/ui/borrowck/index-mut-help-with-impl.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
334 B
Plaintext
Raw Normal View History

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
|
2019-03-09 06:03:44 -06:00
LL | Index::index(&v, 1..2).make_ascii_uppercase();
| ^^^^^^^^^^^^^^^^^^^^^^ cannot borrow as mutable
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0596`.