-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Closed
Labels
T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.regression-from-stable-to-betaPerformance or correctness regression from stable to beta.Performance or correctness regression from stable to beta.relnotesMarks issues that should be documented in the release notes of the next release.Marks issues that should be documented in the release notes of the next release.
Milestone
Description
The tests of the downcast crate version 0.9.0 fail on latest beta 1.21, while they work on stable. The error output (full log):
error[E0310]: the parameter type `X` may not live long enough
--> examples/with_params.rs:11:1
|
11 | downcast!(<X> Animal<X> where X: Debug);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: consider adding an explicit lifetime bound `X: 'static`...
note: ...so that the type `Animal<X> + 'static` will meet its required lifetime bounds
--> examples/with_params.rs:11:1
|
11 | downcast!(<X> Animal<X> where X: Debug);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= note: this error originates in a macro outside of the current crate
cc @fkoep
Metadata
Metadata
Assignees
Labels
T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.regression-from-stable-to-betaPerformance or correctness regression from stable to beta.Performance or correctness regression from stable to beta.relnotesMarks issues that should be documented in the release notes of the next release.Marks issues that should be documented in the release notes of the next release.