error[E0310]: the parameter type `U` may not live long enough
- --> $DIR/dont-infer-static.rs:8:10
+ --> $DIR/dont-infer-static.rs:6:10
|
LL | bar: Bar<U>
| ^^^^^^ ...so that the type `U` will meet its required lifetime bounds...
|
note: ...that is required by this bound
- --> $DIR/dont-infer-static.rs:10:15
+ --> $DIR/dont-infer-static.rs:8:15
|
LL | struct Bar<T: 'static> {
| ^^^^^^^