@@ -42,40 +42,6 @@ LL | async fn async_dispatch(&self);
4242 = help: consider moving `async_dispatch` to another trait
4343 = help: only type `&'static str` implements `AsyncTrait`; consider using it directly instead.
4444
45- error[E0038]: the trait `AsyncTrait` is not dyn compatible
46- --> $DIR/works.rs:28:11
47- |
48- LL | x.async_dispatch().await;
49- | ^^^^^^^^^^^^^^ `AsyncTrait` is not dyn compatible
50- |
51- note: for a trait to be dyn compatible it needs to allow building a vtable
52- for more information, visit <https://doc.rust-lang.org/reference/items/traits.html#dyn-compatibility>
53- --> $DIR/works.rs:14:14
54- |
55- LL | trait AsyncTrait {
56- | ---------- this trait is not dyn compatible...
57- LL | async fn async_dispatch(&self);
58- | ^^^^^^^^^^^^^^ ...because method `async_dispatch` is `async`
59- = help: consider moving `async_dispatch` to another trait
60- = help: only type `&'static str` implements `AsyncTrait`; consider using it directly instead.
61-
62- error[E0038]: the trait `AsyncTrait` is not dyn compatible
63- --> $DIR/works.rs:28:9
64- |
65- LL | x.async_dispatch().await;
66- | ^^^^^^^^^^^^^^^^^^ `AsyncTrait` is not dyn compatible
67- |
68- note: for a trait to be dyn compatible it needs to allow building a vtable
69- for more information, visit <https://doc.rust-lang.org/reference/items/traits.html#dyn-compatibility>
70- --> $DIR/works.rs:14:14
71- |
72- LL | trait AsyncTrait {
73- | ---------- this trait is not dyn compatible...
74- LL | async fn async_dispatch(&self);
75- | ^^^^^^^^^^^^^^ ...because method `async_dispatch` is `async`
76- = help: consider moving `async_dispatch` to another trait
77- = help: only type `&'static str` implements `AsyncTrait`; consider using it directly instead.
78-
79- error: aborting due to 4 previous errors; 1 warning emitted
45+ error: aborting due to 2 previous errors; 1 warning emitted
8046
8147For more information about this error, try `rustc --explain E0038`.
0 commit comments