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: tests/ui/async-await/async-fn/dyn-pos.stderr
+8-8
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,8 @@
1
1
error[E0038]: the trait `AsyncFnMut` cannot be made into an object
2
2
--> $DIR/dyn-pos.rs:5:16
3
3
|
4
-
LL | fn foo(x: &dyn async Fn()) {}
5
-
| ^^^^^^^^^^ `AsyncFnMut` cannot be made into an object
4
+
LL | fn foo(x: &dyn AsyncFn()) {}
5
+
| ^^^^^^^^^ `AsyncFnMut` cannot be made into an object
6
6
|
7
7
note: for a trait to be "dyn-compatible" it needs to allow building a vtable to allow the call to be resolvable dynamically; for more information visit <https://doc.rust-lang.org/reference/items/traits.html#object-safety>
@@ -16,8 +16,8 @@ note: for a trait to be "dyn-compatible" it needs to allow building a vtable to
16
16
error[E0038]: the trait `AsyncFnMut` cannot be made into an object
17
17
--> $DIR/dyn-pos.rs:5:16
18
18
|
19
-
LL | fn foo(x: &dyn async Fn()) {}
20
-
| ^^^^^^^^^^ `AsyncFnMut` cannot be made into an object
19
+
LL | fn foo(x: &dyn AsyncFn()) {}
20
+
| ^^^^^^^^^ `AsyncFnMut` cannot be made into an object
21
21
|
22
22
note: for a trait to be "dyn-compatible" it needs to allow building a vtable to allow the call to be resolvable dynamically; for more information visit <https://doc.rust-lang.org/reference/items/traits.html#object-safety>
@@ -32,8 +32,8 @@ note: for a trait to be "dyn-compatible" it needs to allow building a vtable to
32
32
error[E0038]: the trait `AsyncFnMut` cannot be made into an object
33
33
--> $DIR/dyn-pos.rs:5:16
34
34
|
35
-
LL | fn foo(x: &dyn async Fn()) {}
36
-
| ^^^^^^^^^^ `AsyncFnMut` cannot be made into an object
35
+
LL | fn foo(x: &dyn AsyncFn()) {}
36
+
| ^^^^^^^^^ `AsyncFnMut` cannot be made into an object
37
37
|
38
38
note: for a trait to be "dyn-compatible" it needs to allow building a vtable to allow the call to be resolvable dynamically; for more information visit <https://doc.rust-lang.org/reference/items/traits.html#object-safety>
@@ -48,8 +48,8 @@ note: for a trait to be "dyn-compatible" it needs to allow building a vtable to
48
48
error[E0038]: the trait `AsyncFn` cannot be made into an object
49
49
--> $DIR/dyn-pos.rs:5:12
50
50
|
51
-
LL | fn foo(x: &dyn async Fn()) {}
52
-
| ^^^^^^^^^^^^^^ `AsyncFn` cannot be made into an object
51
+
LL | fn foo(x: &dyn AsyncFn()) {}
52
+
| ^^^^^^^^^^^^^ `AsyncFn` cannot be made into an object
53
53
|
54
54
note: for a trait to be "dyn-compatible" it needs to allow building a vtable to allow the call to be resolvable dynamically; for more information visit <https://doc.rust-lang.org/reference/items/traits.html#object-safety>
0 commit comments