]> git.lizzy.rs Git - rust.git/commit
Add help message for missing `IndexMut` impl
authorLukas Kalbertodt <lukas.kalbertodt@gmail.com>
Fri, 27 Jul 2018 18:44:09 +0000 (20:44 +0200)
committerLukas Kalbertodt <lukas.kalbertodt@gmail.com>
Sat, 28 Jul 2018 12:00:56 +0000 (14:00 +0200)
commit9d59c6b76e96005201d3b66dae946cc01dc5e565
tree0dcf88cfde8af43cf8cf90ec1b20f864debd1b65
parent45b48b9b6d70065a16cc119fe934ed342c664c78
Add help message for missing `IndexMut` impl

Before this change it simply says "cannot assign to immutable indexed
content". This might be confusing for Rust beginners, as implementing
two traits for "one operator" is not intuitive.
src/librustc_borrowck/borrowck/mod.rs