rust/src/test/ui/suggestions/suggest-impl-trait-lifetime.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
641 B
Plaintext
Raw Normal View History

error[E0310]: the parameter type `impl Debug` may not live long enough
2022-05-22 00:36:12 -05:00
--> $DIR/suggest-impl-trait-lifetime.rs:12:5
|
LL | bar(d);
| ^^^ ...so that the type `impl Debug` will meet its required lifetime bounds...
|
note: ...that is required by this bound
2022-05-22 00:36:12 -05:00
--> $DIR/suggest-impl-trait-lifetime.rs:17:24
|
LL | fn bar(d: impl Debug + 'static) {
| ^^^^^^^
2022-03-14 09:56:37 -05:00
help: consider adding an explicit lifetime bound...
|
LL | fn foo(d: impl Debug + 'static) {
| +++++++++
error: aborting due to previous error
For more information about this error, try `rustc --explain E0310`.