aboutsummaryrefslogtreecommitdiff
path: root/tests/ui/no-attribute-macro.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/no-attribute-macro.stderr')
-rw-r--r--tests/ui/no-attribute-macro.stderr14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/ui/no-attribute-macro.stderr b/tests/ui/no-attribute-macro.stderr
new file mode 100644
index 0000000..35d8d5a
--- /dev/null
+++ b/tests/ui/no-attribute-macro.stderr
@@ -0,0 +1,14 @@
+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 "object safe" 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