]>
Commit | Line | Data |
---|---|---|
48663c56 XL |
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 | bar(d); | |
04454e1e | 5 | | ^^^^^^ ...so that the type `impl Debug` will meet its required lifetime bounds |
48663c56 | 6 | | |
04454e1e FG |
7 | help: consider adding an explicit lifetime bound... |
8 | | | |
9 | LL | fn foo(d: impl Debug + 'static) { | |
10 | | +++++++++ | |
48663c56 XL |
11 | |
12 | error: aborting due to previous error | |
13 | ||
14 | For more information about this error, try `rustc --explain E0310`. |