1 error[E0310]: the parameter type `U` may not live long enough
2 --> $DIR/dont-infer-static.rs:20:5
5 | - help: consider adding an explicit lifetime bound `U: 'static`...
6 LL | bar: Bar<U> //~ ERROR 20:5: 20:16: the parameter type `U` may not live long enough [E0310]
9 note: ...so that the type `U` will meet its required lifetime bounds
10 --> $DIR/dont-infer-static.rs:20:5
12 LL | bar: Bar<U> //~ ERROR 20:5: 20:16: the parameter type `U` may not live long enough [E0310]
15 error: aborting due to previous error
17 For more information about this error, try `rustc --explain E0310`.