summary refs log tree commit diff
path: root/src/test/ui/borrowck/borrowck-overloaded-index-move-from-vec.stderr
blob: 56246cbf770a6895404452b9b9133f5529bc7e45 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
error[E0507]: cannot move out of indexed content
  --> $DIR/borrowck-overloaded-index-move-from-vec.rs:30:15
   |
LL |     let bad = v[0];
   |               ^^^^
   |               |
   |               cannot move out of indexed content
   |               help: consider using a reference instead: `&v[0]`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0507`.