2022-06-30 09:26:17 -05:00
|
|
|
error[E0310]: the parameter type `T` may not live long enough
|
2022-10-03 05:45:02 -05:00
|
|
|
--> $DIR/issue-98693.rs:16:9
|
2022-06-30 09:26:17 -05:00
|
|
|
|
|
2022-10-03 05:45:02 -05:00
|
|
|
LL | assert_static::<T>();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^ ...so that the type `T` will meet its required lifetime bounds
|
2022-06-30 09:26:17 -05:00
|
|
|
|
|
|
|
|
help: consider adding an explicit lifetime bound...
|
|
|
|
|
|
|
|
|
LL | fn test<T: 'static>() {
|
|
|
|
| +++++++++
|
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0310`.
|