You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/test/ui/async-await/async-fn-nonsend.stderr
+16-16
Original file line number
Diff line number
Diff line change
@@ -1,43 +1,43 @@
1
1
error[E0277]: `std::rc::Rc<()>` cannot be sent between threads safely
2
-
--> $DIR/async-fn-nonsend.rs:52:5
2
+
--> $DIR/async-fn-nonsend.rs:50:5
3
3
|
4
4
LL | assert_send(local_dropped_before_await());
5
5
| ^^^^^^^^^^^ `std::rc::Rc<()>` cannot be sent between threads safely
6
6
|
7
7
= help: within `impl std::future::Future`, the trait `std::marker::Send` is not implemented for `std::rc::Rc<()>`
8
8
= note: required because it appears within the type `impl std::fmt::Debug`
9
9
= note: required because it appears within the type `{impl std::fmt::Debug, impl std::future::Future, ()}`
10
-
= note: required because it appears within the type `[static generator@$DIR/async-fn-nonsend.rs:23:39: 28:2 {impl std::fmt::Debug, impl std::future::Future, ()}]`
11
-
= note: required because it appears within the type `std::future::GenFuture<[static generator@$DIR/async-fn-nonsend.rs:23:39: 28:2 {impl std::fmt::Debug, impl std::future::Future, ()}]>`
10
+
= note: required because it appears within the type `[static generator@$DIR/async-fn-nonsend.rs:21:39: 26:2 {impl std::fmt::Debug, impl std::future::Future, ()}]`
11
+
= note: required because it appears within the type `std::future::GenFuture<[static generator@$DIR/async-fn-nonsend.rs:21:39: 26:2 {impl std::fmt::Debug, impl std::future::Future, ()}]>`
12
12
= note: required because it appears within the type `impl std::future::Future`
13
13
= note: required because it appears within the type `impl std::future::Future`
14
14
note: required by `assert_send`
15
-
--> $DIR/async-fn-nonsend.rs:49:1
15
+
--> $DIR/async-fn-nonsend.rs:47:1
16
16
|
17
17
LL | fn assert_send(_: impl Send) {}
18
18
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
19
19
20
20
error[E0277]: `std::rc::Rc<()>` cannot be sent between threads safely
21
-
--> $DIR/async-fn-nonsend.rs:54:5
21
+
--> $DIR/async-fn-nonsend.rs:52:5
22
22
|
23
23
LL | assert_send(non_send_temporary_in_match());
24
24
| ^^^^^^^^^^^ `std::rc::Rc<()>` cannot be sent between threads safely
25
25
|
26
26
= help: within `impl std::future::Future`, the trait `std::marker::Send` is not implemented for `std::rc::Rc<()>`
27
27
= note: required because it appears within the type `impl std::fmt::Debug`
28
28
= note: required because it appears within the type `{fn(impl std::fmt::Debug) -> std::option::Option<impl std::fmt::Debug> {std::option::Option::<impl std::fmt::Debug>::Some}, fn() -> impl std::fmt::Debug {non_send}, impl std::fmt::Debug, std::option::Option<impl std::fmt::Debug>, impl std::future::Future, ()}`
29
-
= note: required because it appears within the type `[static generator@$DIR/async-fn-nonsend.rs:30:40: 39:2 {fn(impl std::fmt::Debug) -> std::option::Option<impl std::fmt::Debug> {std::option::Option::<impl std::fmt::Debug>::Some}, fn() -> impl std::fmt::Debug {non_send}, impl std::fmt::Debug, std::option::Option<impl std::fmt::Debug>, impl std::future::Future, ()}]`
30
-
= note: required because it appears within the type `std::future::GenFuture<[static generator@$DIR/async-fn-nonsend.rs:30:40: 39:2 {fn(impl std::fmt::Debug) -> std::option::Option<impl std::fmt::Debug> {std::option::Option::<impl std::fmt::Debug>::Some}, fn() -> impl std::fmt::Debug {non_send}, impl std::fmt::Debug, std::option::Option<impl std::fmt::Debug>, impl std::future::Future, ()}]>`
29
+
= note: required because it appears within the type `[static generator@$DIR/async-fn-nonsend.rs:28:40: 37:2 {fn(impl std::fmt::Debug) -> std::option::Option<impl std::fmt::Debug> {std::option::Option::<impl std::fmt::Debug>::Some}, fn() -> impl std::fmt::Debug {non_send}, impl std::fmt::Debug, std::option::Option<impl std::fmt::Debug>, impl std::future::Future, ()}]`
30
+
= note: required because it appears within the type `std::future::GenFuture<[static generator@$DIR/async-fn-nonsend.rs:28:40: 37:2 {fn(impl std::fmt::Debug) -> std::option::Option<impl std::fmt::Debug> {std::option::Option::<impl std::fmt::Debug>::Some}, fn() -> impl std::fmt::Debug {non_send}, impl std::fmt::Debug, std::option::Option<impl std::fmt::Debug>, impl std::future::Future, ()}]>`
31
31
= note: required because it appears within the type `impl std::future::Future`
32
32
= note: required because it appears within the type `impl std::future::Future`
33
33
note: required by `assert_send`
34
-
--> $DIR/async-fn-nonsend.rs:49:1
34
+
--> $DIR/async-fn-nonsend.rs:47:1
35
35
|
36
36
LL | fn assert_send(_: impl Send) {}
37
37
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
38
38
39
39
error[E0277]: `dyn std::fmt::Write` cannot be sent between threads safely
40
-
--> $DIR/async-fn-nonsend.rs:56:5
40
+
--> $DIR/async-fn-nonsend.rs:54:5
41
41
|
42
42
LL | assert_send(non_sync_with_method_call());
43
43
| ^^^^^^^^^^^ `dyn std::fmt::Write` cannot be sent between threads safely
= note: required because it appears within the type `std::fmt::Formatter<'_>`
48
48
= note: required because of the requirements on the impl of `std::marker::Send` for `&mut std::fmt::Formatter<'_>`
49
49
= note: required because it appears within the type `for<'r, 's> {&'r mut std::fmt::Formatter<'s>, bool, impl std::future::Future, ()}`
50
-
= note: required because it appears within the type `[static generator@$DIR/async-fn-nonsend.rs:41:38: 47:2 for<'r, 's> {&'r mut std::fmt::Formatter<'s>, bool, impl std::future::Future, ()}]`
51
-
= note: required because it appears within the type `std::future::GenFuture<[static generator@$DIR/async-fn-nonsend.rs:41:38: 47:2 for<'r, 's> {&'r mut std::fmt::Formatter<'s>, bool, impl std::future::Future, ()}]>`
50
+
= note: required because it appears within the type `[static generator@$DIR/async-fn-nonsend.rs:39:38: 45:2 for<'r, 's> {&'r mut std::fmt::Formatter<'s>, bool, impl std::future::Future, ()}]`
51
+
= note: required because it appears within the type `std::future::GenFuture<[static generator@$DIR/async-fn-nonsend.rs:39:38: 45:2 for<'r, 's> {&'r mut std::fmt::Formatter<'s>, bool, impl std::future::Future, ()}]>`
52
52
= note: required because it appears within the type `impl std::future::Future`
53
53
= note: required because it appears within the type `impl std::future::Future`
54
54
note: required by `assert_send`
55
-
--> $DIR/async-fn-nonsend.rs:49:1
55
+
--> $DIR/async-fn-nonsend.rs:47:1
56
56
|
57
57
LL | fn assert_send(_: impl Send) {}
58
58
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
59
59
60
60
error[E0277]: `*mut (dyn std::ops::Fn() + 'static)` cannot be shared between threads safely
61
-
--> $DIR/async-fn-nonsend.rs:56:5
61
+
--> $DIR/async-fn-nonsend.rs:54:5
62
62
|
63
63
LL | assert_send(non_sync_with_method_call());
64
64
| ^^^^^^^^^^^ `*mut (dyn std::ops::Fn() + 'static)` cannot be shared between threads safely
= note: required because it appears within the type `std::fmt::Formatter<'_>`
73
73
= note: required because of the requirements on the impl of `std::marker::Send` for `&mut std::fmt::Formatter<'_>`
74
74
= note: required because it appears within the type `for<'r, 's> {&'r mut std::fmt::Formatter<'s>, bool, impl std::future::Future, ()}`
75
-
= note: required because it appears within the type `[static generator@$DIR/async-fn-nonsend.rs:41:38: 47:2 for<'r, 's> {&'r mut std::fmt::Formatter<'s>, bool, impl std::future::Future, ()}]`
76
-
= note: required because it appears within the type `std::future::GenFuture<[static generator@$DIR/async-fn-nonsend.rs:41:38: 47:2 for<'r, 's> {&'r mut std::fmt::Formatter<'s>, bool, impl std::future::Future, ()}]>`
75
+
= note: required because it appears within the type `[static generator@$DIR/async-fn-nonsend.rs:39:38: 45:2 for<'r, 's> {&'r mut std::fmt::Formatter<'s>, bool, impl std::future::Future, ()}]`
76
+
= note: required because it appears within the type `std::future::GenFuture<[static generator@$DIR/async-fn-nonsend.rs:39:38: 45:2 for<'r, 's> {&'r mut std::fmt::Formatter<'s>, bool, impl std::future::Future, ()}]>`
77
77
= note: required because it appears within the type `impl std::future::Future`
78
78
= note: required because it appears within the type `impl std::future::Future`
0 commit comments