You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/ui/no-attribute-macro.stderr
+15Lines changed: 15 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -23,3 +23,18 @@ error[E0706]: functions in traits cannot be declared `async`
23
23
= note: consider using the `async-trait` crate: https://crates.io/crates/async-trait
24
24
= note: see issue #91611 <https://github.com/rust-lang/rust/issues/91611> for more information
25
25
= help: add `#![feature(async_fn_in_trait)]` to the crate attributes to enable
26
+
27
+
error[E0038]: the trait `Trait` cannot be made into an object
28
+
--> tests/ui/no-attribute-macro.rs:12:12
29
+
|
30
+
12 | let _: &dyn Trait;
31
+
| ^^^^^^^^^^ `Trait` cannot be made into an object
32
+
|
33
+
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>
34
+
--> tests/ui/no-attribute-macro.rs:2:14
35
+
|
36
+
1 | pub trait Trait {
37
+
| ----- this trait cannot be made into an object...
0 commit comments