]> git.lizzy.rs Git - rust.git/blob - src/test/ui/suggestions/suggest-impl-trait-lifetime.stderr
Override rustc version in ui and mir-opt tests to get stable hashes
[rust.git] / src / test / ui / suggestions / suggest-impl-trait-lifetime.stderr
1 error[E0310]: the parameter type `impl Debug` may not live long enough
2   --> $DIR/suggest-impl-trait-lifetime.rs:7:5
3    |
4 LL | fn foo(d: impl Debug) {
5    |           ---------- help: consider adding an explicit lifetime bound...: `impl Debug + 'static`
6 LL |
7 LL |     bar(d);
8    |     ^^^ ...so that the type `impl Debug` will meet its required lifetime bounds...
9    |
10 note: ...that is required by this bound
11   --> $DIR/suggest-impl-trait-lifetime.rs:12:24
12    |
13 LL | fn bar(d: impl Debug + 'static) {
14    |                        ^^^^^^^
15
16 error: aborting due to previous error
17
18 For more information about this error, try `rustc --explain E0310`.