Skip to content

Commit 3f11674

Browse files
committed
Update ui test suite to nightly-2025-01-23
1 parent fee923d commit 3f11674

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

tests/ui/no-attribute-macro.stderr

+7-6
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
1-
error[E0038]: the trait `Trait` cannot be made into an object
1+
error[E0038]: the trait `Trait` is not dyn compatible
22
--> tests/ui/no-attribute-macro.rs:12:12
33
|
44
12 | let _: &dyn Trait;
5-
| ^^^^^^^^^^ `Trait` cannot be made into an object
5+
| ^^^^^^^^^^ `Trait` is not dyn compatible
66
|
7-
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>
7+
note: for a trait to be dyn compatible it needs to allow building a vtable
8+
for more information, visit <https://doc.rust-lang.org/reference/items/traits.html#object-safety>
89
--> tests/ui/no-attribute-macro.rs:2:14
910
|
1011
1 | pub trait Trait {
11-
| ----- this trait cannot be made into an object...
12+
| ----- this trait is not dyn compatible...
1213
2 | async fn method(&self);
1314
| ^^^^^^ ...because method `method` is `async`
1415
= help: consider moving `method` to another trait
15-
= help: only type `Struct` is seen to implement the trait in this crate, consider using it directly instead
16-
= 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
16+
= help: only type `Struct` implements `Trait` within this crate; consider using it directly instead.
17+
= 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

0 commit comments

Comments
 (0)