Skip to content

Commit

Permalink
Update ui test suite to nightly-2025-01-23
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Jan 23, 2025
1 parent fee923d commit 3f11674
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions tests/ui/no-attribute-macro.stderr
Original file line number Diff line number Diff line change
@@ -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 <https://doc.rust-lang.org/reference/items/traits.html#object-safety>
note: for a trait to be dyn compatible it needs to allow building a vtable
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...
| ----- 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

0 comments on commit 3f11674

Please sign in to comment.