aboutsummaryrefslogtreecommitdiff
path: root/src/compile_fail/rc_return.rs
blob: 164f8ce5ee3a3408ba185fe889bd3cb90ea73a7a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/** ```compile_fail,E0277

use std::rc::Rc;

fn main() {
    rayon_core::join(|| Rc::new(22), || ()); //~ ERROR
}

``` */
mod left {}

/** ```compile_fail,E0277

use std::rc::Rc;

fn main() {
    rayon_core::join(|| (), || Rc::new(23)); //~ ERROR
}

``` */
mod right {}