diff --git a/tests/ui/no-attribute-macro.stderr b/tests/ui/no-attribute-macro.stderr index 6ed542e..c04627f 100644 --- a/tests/ui/no-attribute-macro.stderr +++ b/tests/ui/no-attribute-macro.stderr @@ -1,16 +1,17 @@ -error[E0038]: the trait `Trait` cannot be made into an object +error[E0038]: the trait `Trait` is not dyn compatible --> tests/ui/no-attribute-macro.rs:12:12 | 12 | let _: &dyn Trait; - | ^^^^^^^^^^ `Trait` cannot be made into an object + | ^^^^^^^^^^ `Trait` is not dyn compatible | -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 +note: for a trait to be dyn compatible it needs to allow building a vtable + for more information, visit --> tests/ui/no-attribute-macro.rs:2:14 | 1 | pub trait Trait { - | ----- this trait cannot be made into an object... + | ----- this trait is not dyn compatible... 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 + = help: only type `Struct` implements `Trait` within this crate; consider using it directly instead. + = note: `Trait` may 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