]> git.lizzy.rs Git - rust.git/blob - src/test/ui/feature-gates/feature-gate-infer_static_outlives_requirements.stderr
2beeba8184a7dfb0b3a7891fa222f6c2819c0ef2
[rust.git] / src / test / ui / feature-gates / feature-gate-infer_static_outlives_requirements.stderr
1 error[E0310]: the parameter type `U` may not live long enough
2   --> $DIR/feature-gate-infer_static_outlives_requirements.rs:5:5
3    |
4 LL | struct Foo<U> {
5    |            - help: consider adding an explicit lifetime bound...: `U: 'static`
6 LL |     bar: Bar<U>
7    |     ^^^^^^^^^^^ ...so that the type `U` will meet its required lifetime bounds
8
9 error: aborting due to previous error
10
11 For more information about this error, try `rustc --explain E0310`.