]>
Commit | Line | Data |
---|---|---|
48663c56 | 1 | error[E0310]: the parameter type `T` may not live long enough |
923072b8 | 2 | --> $DIR/issue-98693.rs:15:5 |
48663c56 | 3 | | |
923072b8 FG |
4 | LL | / || { |
5 | LL | | | |
6 | LL | | assert_static::<T>(); | |
7 | LL | | }; | |
8 | | |_____^ ...so that the type `T` will meet its required lifetime bounds | |
48663c56 | 9 | | |
04454e1e FG |
10 | help: consider adding an explicit lifetime bound... |
11 | | | |
923072b8 FG |
12 | LL | fn test<T: 'static>() { |
13 | | +++++++++ | |
48663c56 XL |
14 | |
15 | error: aborting due to previous error | |
16 | ||
17 | For more information about this error, try `rustc --explain E0310`. |