fork/rust

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

borsAuto merge of #71868 - Mark-Simulacrum:stable-1.43.1, r=pietroalbini8d69840ab92

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