1
Fork 0

Print RPITIT like an opaque

This commit is contained in:
Michael Goulet 2024-02-27 16:11:35 +00:00
parent 1feef44daf
commit b57ddfe079
5 changed files with 18 additions and 14 deletions

View file

@ -1,10 +1,10 @@
error[E0310]: the associated type `<T as Original>::{synthetic#0}` may not live long enough
error[E0310]: the associated type `impl Fn()` may not live long enough
--> $DIR/missing-static-bound-from-impl.rs:11:9
|
LL | Box::new(<T as Original>::f())
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| |
| the associated type `<T as Original>::{synthetic#0}` must be valid for the static lifetime...
| the associated type `impl Fn()` 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