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
560 B18 linesraw
1error[E0310]: the parameter type `impl Debug` may not live long enough
2  --> $DIR/suggest-impl-trait-lifetime.rs:7:5
3   |
4LL | fn foo(d: impl Debug) {
5   |           ---------- help: consider adding an explicit lifetime bound...: `impl Debug + 'static`
6LL |
7LL |     bar(d);
8   |     ^^^
9   |
10note: ...so that the type `impl Debug` will meet its required lifetime bounds
11  --> $DIR/suggest-impl-trait-lifetime.rs:7:5
12   |
13LL |     bar(d);
14   |     ^^^
15
16error: aborting due to previous error
17
18For more information about this error, try `rustc --explain E0310`.