]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rfc-2093-infer-outlives/dont-infer-static.stderr
Auto merge of #58488 - wesleywiser:llvm_prof, r=michaelwoerister
[rust.git] / src / test / ui / rfc-2093-infer-outlives / dont-infer-static.stderr
1 error[E0310]: the parameter type `U` may not live long enough
2   --> $DIR/dont-infer-static.rs:10:5
3    |
4 LL | struct Foo<U> {
5    |            - help: consider adding an explicit lifetime bound `U: 'static`...
6 LL |     bar: Bar<U>
7    |     ^^^^^^^^^^^
8    |
9 note: ...so that the type `U` will meet its required lifetime bounds
10   --> $DIR/dont-infer-static.rs:10:5
11    |
12 LL |     bar: Bar<U>
13    |     ^^^^^^^^^^^
14
15 error: aborting due to previous error
16
17 For more information about this error, try `rustc --explain E0310`.