]> git.lizzy.rs Git - rust.git/blob - src/test/ui/feature-gates/feature-gate-infer_static_outlives_requirements.stderr
Remove the `infer_static_outlives_requirements` feature
[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:10
3    |
4 LL |     bar: Bar<U>
5    |          ^^^^^^ ...so that the type `U` will meet its required lifetime bounds...
6    |
7 note: ...that is required by this bound
8   --> $DIR/feature-gate-infer_static_outlives_requirements.rs:7:15
9    |
10 LL | struct Bar<T: 'static> {
11    |               ^^^^^^^
12 help: consider adding an explicit lifetime bound...
13    |
14 LL | struct Foo<U: 'static> {
15    |             +++++++++
16
17 error: aborting due to previous error
18
19 For more information about this error, try `rustc --explain E0310`.