fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
578 B19 linesraw
1error[E0310]: the parameter type `U` may not live long enough
2  --> $DIR/dont-infer-static.rs:6:10
3   |
4LL |     bar: Bar<U>
5   |          ^^^^^^ ...so that the type `U` will meet its required lifetime bounds...
6   |
7note: ...that is required by this bound
8  --> $DIR/dont-infer-static.rs:8:15
9   |
10LL | struct Bar<T: 'static> {
11   |               ^^^^^^^
12help: consider adding an explicit lifetime bound...
13   |
14LL | struct Foo<U: 'static> {
15   |             +++++++++
16
17error: aborting due to previous error
18
19For more information about this error, try `rustc --explain E0310`.