1
1
error: future cannot be sent between threads safely
2
- --> $DIR/async-await-let-else.rs:45 :13
2
+ --> $DIR/async-await-let-else.rs:48 :13
3
3
|
4
4
LL | is_send(foo(Some(true)));
5
5
| ^^^^^^^^^^^^^^^ future returned by `foo` is not `Send`
6
6
|
7
7
= help: within `impl Future<Output = ()>`, the trait `Send` is not implemented for `Rc<()>`
8
8
note: future is not `Send` as this value is used across an await
9
- --> $DIR/async-await-let-else.rs:8 :14
9
+ --> $DIR/async-await-let-else.rs:11 :14
10
10
|
11
11
LL | let r = Rc::new(());
12
12
| - has type `Rc<()>` which is not `Send`
@@ -15,20 +15,20 @@ LL | bar().await
15
15
LL | };
16
16
| - `r` is later dropped here
17
17
note: required by a bound in `is_send`
18
- --> $DIR/async-await-let-else.rs:16 :15
18
+ --> $DIR/async-await-let-else.rs:19 :15
19
19
|
20
20
LL | fn is_send<T: Send>(_: T) {}
21
21
| ^^^^ required by this bound in `is_send`
22
22
23
23
error: future cannot be sent between threads safely
24
- --> $DIR/async-await-let-else.rs:47 :13
24
+ --> $DIR/async-await-let-else.rs:50 :13
25
25
|
26
26
LL | is_send(foo2(Some(true)));
27
27
| ^^^^^^^^^^^^^^^^ future returned by `foo2` is not `Send`
28
28
|
29
29
= help: within `impl Future<Output = ()>`, the trait `Send` is not implemented for `Rc<()>`
30
30
note: future is not `Send` as this value is used across an await
31
- --> $DIR/async-await-let-else.rs:20 :26
31
+ --> $DIR/async-await-let-else.rs:23 :26
32
32
|
33
33
LL | bar2(Rc::new(())).await
34
34
| ----------- ^^^^^^ await occurs here, with `Rc::new(())` maybe used later
@@ -37,45 +37,45 @@ LL | bar2(Rc::new(())).await
37
37
LL | };
38
38
| - `Rc::new(())` is later dropped here
39
39
note: required by a bound in `is_send`
40
- --> $DIR/async-await-let-else.rs:16 :15
40
+ --> $DIR/async-await-let-else.rs:19 :15
41
41
|
42
42
LL | fn is_send<T: Send>(_: T) {}
43
43
| ^^^^ required by this bound in `is_send`
44
44
45
45
error: future cannot be sent between threads safely
46
- --> $DIR/async-await-let-else.rs:49 :13
46
+ --> $DIR/async-await-let-else.rs:52 :13
47
47
|
48
48
LL | is_send(foo3(Some(true)));
49
49
| ^^^^^^^^^^^^^^^^ future returned by `foo3` is not `Send`
50
50
|
51
51
= help: within `impl Future<Output = ()>`, the trait `Send` is not implemented for `Rc<()>`
52
52
note: future is not `Send` as this value is used across an await
53
- --> $DIR/async-await-let-else.rs:30 :28
53
+ --> $DIR/async-await-let-else.rs:33 :28
54
54
|
55
55
LL | (Rc::new(()), bar().await);
56
56
| ----------- ^^^^^^ await occurs here, with `Rc::new(())` maybe used later
57
57
| |
58
58
| has type `Rc<()>` which is not `Send`
59
59
note: `Rc::new(())` is later dropped here
60
- --> $DIR/async-await-let-else.rs:30 :35
60
+ --> $DIR/async-await-let-else.rs:33 :35
61
61
|
62
62
LL | (Rc::new(()), bar().await);
63
63
| ^
64
64
note: required by a bound in `is_send`
65
- --> $DIR/async-await-let-else.rs:16 :15
65
+ --> $DIR/async-await-let-else.rs:19 :15
66
66
|
67
67
LL | fn is_send<T: Send>(_: T) {}
68
68
| ^^^^ required by this bound in `is_send`
69
69
70
70
error: future cannot be sent between threads safely
71
- --> $DIR/async-await-let-else.rs:51 :13
71
+ --> $DIR/async-await-let-else.rs:54 :13
72
72
|
73
73
LL | is_send(foo4(Some(true)));
74
74
| ^^^^^^^^^^^^^^^^ future returned by `foo4` is not `Send`
75
75
|
76
76
= help: within `impl Future<Output = ()>`, the trait `Send` is not implemented for `Rc<()>`
77
77
note: future is not `Send` as this value is used across an await
78
- --> $DIR/async-await-let-else.rs:38 :14
78
+ --> $DIR/async-await-let-else.rs:41 :14
79
79
|
80
80
LL | let r = Rc::new(());
81
81
| - has type `Rc<()>` which is not `Send`
@@ -85,7 +85,7 @@ LL | bar().await;
85
85
LL | };
86
86
| - `r` is later dropped here
87
87
note: required by a bound in `is_send`
88
- --> $DIR/async-await-let-else.rs:16 :15
88
+ --> $DIR/async-await-let-else.rs:19 :15
89
89
|
90
90
LL | fn is_send<T: Send>(_: T) {}
91
91
| ^^^^ required by this bound in `is_send`
0 commit comments