rust/tests/ui/impl-trait/in-trait/missing-static-bound-from-impl.stderr

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

13 lines
551 B
Plaintext
Raw Normal View History

2024-02-27 16:02:19 +00:00
error[E0310]: the associated type `<T as Original>::{synthetic#0}` may not live long enough
--> $DIR/missing-static-bound-from-impl.rs:11:9
|
LL | Box::new(<T as Original>::f())
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| |
2024-02-27 16:02:19 +00:00
| the associated type `<T as Original>::{synthetic#0}` must be valid for the static lifetime...
| ...so that the type `impl Fn()` will meet its required lifetime bounds
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0310`.