-
-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update ui test suite to nightly-2025-01-23
- Loading branch information
Showing
1 changed file
with
7 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |