Closed
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