rust/tests/ui/async-await/async-fn/dyn-pos.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
653 B
Plaintext
Raw Normal View History

error[E0038]: the trait `AsyncFnMut` is not dyn compatible
2024-11-06 17:53:59 +00:00
--> $DIR/dyn-pos.rs:3:16
2024-01-26 17:00:34 +00:00
|
LL | fn foo(x: &dyn AsyncFn()) {}
| ^^^^^^^^^ `AsyncFnMut` is not dyn compatible
2024-01-26 17:00:34 +00:00
|
note: for a trait to be dyn compatible it needs to allow building a vtable
for more information, visit <https://doc.rust-lang.org/reference/items/traits.html#dyn-compatibility>
2024-01-26 17:00:34 +00:00
--> $SRC_DIR/core/src/ops/async_function.rs:LL:COL
|
= note: the trait is not dyn compatible because it contains the generic associated type `CallRefFuture`
2024-01-26 17:00:34 +00:00
error: aborting due to 1 previous error
2024-01-26 17:00:34 +00:00
For more information about this error, try `rustc --explain E0038`.