Skip to content

Commit

Permalink
Merge pull request rayon-rs#378 from cuviper/fail-rc_return
Browse files Browse the repository at this point in the history
Split up the test of join returning Rc
  • Loading branch information
nikomatsakis authored Jun 22, 2017
2 parents 47c6058 + 8b71c86 commit 2114008
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/compile-fail/rc_return.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ extern crate rayon;
use std::rc::Rc;

fn main() {
rayon::join(|| Rc::new(22), || Rc::new(23));
//~^ ERROR E0277
//~| ERROR E0277
rayon::join(|| Rc::new(22), || ()); //~ ERROR E0277
rayon::join(|| (), || Rc::new(23)); //~ ERROR E0277
}

0 comments on commit 2114008

Please sign in to comment.