Open
Description
In src/test/ui/impl-trait/type_parameters_captured.rs (and similarly in src/test/ui/impl-trait/must_outlive_least_region_or_bound.rs) the suggestion goes from
error[E0310]: the parameter type `T` may not live long enough
--> $DIR/type_parameters_captured.rs:11:20
|
LL | fn foo<T>(x: T) -> impl Any + 'static {
| ^^^^^^^^^^^^^^^^^^ ...so that the type `T` will meet its required lifetime bounds
|
help: consider adding an explicit lifetime bound...
to
error[E0310]: the parameter type `T` may not live long enough
--> $DIR/type_parameters_captured.rs:13:5
|
LL | x
| ^ ...so that the type `T` will meet its required lifetime bounds
|
help: consider adding an explicit lifetime bound...