about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2017-04-29 06:16:22 +0000
committerbors <bors@rust-lang.org>2017-04-29 06:16:22 +0000
commitb9e9a03462e717cf54de573faf454ac979e08a0d (patch)
tree85d85104af5cfd5075eb32cebca6aff83c1d61c7 /src/rustllvm/RustWrapper.cpp
parent95467d33cb98c8a9be12da15be559e60628180f5 (diff)
parentab5d16a6b21d1360bb4fed20698aca2ead5f9c85 (diff)
downloadrust-b9e9a03462e717cf54de573faf454ac979e08a0d.tar.gz
rust-b9e9a03462e717cf54de573faf454ac979e08a0d.zip
Auto merge of #41564 - gaurikholkar:master, r=nikomatsakis
Disable ref hint for pattern in let and adding ui tests #40402

A fix to #40402

The `to prevent move, use ref e or ref mut e ` has been disabled.
```
fn main() {
    let v = vec![String::from("oh no")];

    let e = v[0];
}
```
now gives
```
error[E0507]: cannot move out of indexed content
 --> example.rs:4:13
  |
4 |     let e = v[0];
  |             ^^^^ cannot move out of indexed content

error: aborting due to previous error
```
I have added ui tests for the same and also modified a compile-fail test.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions