Skip to content

Commit

Permalink
Fix compile tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dns2utf8 committed Sep 6, 2017
1 parent e800829 commit 7026b02
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/compile-fail/no_send_par_iter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ fn main() {
let x = Some(NoSend(null()));

x.par_iter()
.map(|&x| x) //~ ERROR Send` is not satisfied
.count(); //~ ERROR Send` is not satisfied
.map(|&x| x) //~ ERROR E0277
.count(); //~ ERROR E0599

x.par_iter()
.filter_map(|&x| Some(x)) //~ ERROR Send` is not satisfied
.count(); //~ ERROR Send` is not satisfied
.filter_map(|&x| Some(x)) //~ ERROR E0277
.count(); //~ ERROR E0599

x.par_iter()
.cloned() //~ ERROR Send` is not satisfied
.count(); //~ ERROR Send` is not satisfied
.cloned() //~ ERROR E0277
.count(); //~ ERROR E0599
}

0 comments on commit 7026b02

Please sign in to comment.