]>
Commit | Line | Data |
---|---|---|
8faf50e0 | 1 | error[E0310]: the parameter type `U` may not live long enough |
3dfed10e | 2 | --> $DIR/dont-infer-static.rs:8:10 |
8faf50e0 XL |
3 | | |
4 | LL | struct Foo<U> { | |
74b04a01 | 5 | | - help: consider adding an explicit lifetime bound...: `U: 'static` |
532ac7d7 | 6 | LL | bar: Bar<U> |
94222f64 XL |
7 | | ^^^^^^ ...so that the type `U` will meet its required lifetime bounds... |
8 | | | |
9 | note: ...that is required by this bound | |
10 | --> $DIR/dont-infer-static.rs:10:15 | |
11 | | | |
12 | LL | struct Bar<T: 'static> { | |
13 | | ^^^^^^^ | |
8faf50e0 XL |
14 | |
15 | error: aborting due to previous error | |
16 | ||
17 | For more information about this error, try `rustc --explain E0310`. |