Auto merge of #54343 - blitzerr:master, r=nikomatsakis

First shot at #54015

Closes #54015
This commit is contained in:
bors 2018-10-02 20:46:49 +00:00
commit 2bd5993ca2
20 changed files with 345 additions and 249 deletions

View file

@ -2,7 +2,7 @@ error[E0382]: use of moved value: `tx`
--> $DIR/issue-12041.rs:18:22
|
LL | let tx = tx;
| ^^ value moved here in previous iteration of loop
| ^^ value moved here, in previous iteration of loop
|
= note: move occurs because `tx` has type `std::sync::mpsc::Sender<i32>`, which does not implement the `Copy` trait

View file

@ -5,7 +5,7 @@ LL | let v: Vec<&str> = line.split_whitespace().collect();
| ^^^^ borrowed value does not live long enough
LL | //~^ ERROR `line` does not live long enough
LL | println!("accumulator before add_assign {:?}", acc.map);
| ------- borrow used here in later iteration of loop
| ------- borrow used here, in later iteration of loop
...
LL | }
| - `line` dropped here while still borrowed