Sha256: de0ad90eb2cbb6a27a1909d934837072a9bd1c4a4bbdbd680c0a81653dcfb06b
Contents?: true
Size: 979 Bytes
Versions: 2
Compression:
Stored size: 979 Bytes
Contents
error[E0038]: the trait `Trait` cannot be made into an object --> tests/ui/no-attribute-macro.rs:12:12 | 12 | let _: &dyn Trait; | ^^^^^^^^^^ `Trait` cannot be made into an object | 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> --> tests/ui/no-attribute-macro.rs:2:14 | 1 | pub trait Trait { | ----- this trait cannot be made into an object... 2 | async fn method(&self); | ^^^^^^ ...because method `method` is `async` = help: consider moving `method` to another trait = help: only type `Struct` is seen to implement the trait in this crate, consider using it directly instead = note: `Trait` can be implemented in other crates; if you want to support your users passing their own types here, you can't refer to a specific type
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
wasmtime-29.0.0 | ./ext/cargo-vendor/async-trait-0.1.85/tests/ui/no-attribute-macro.stderr |
wasmtime-28.0.0 | ./ext/cargo-vendor/async-trait-0.1.85/tests/ui/no-attribute-macro.stderr |