about summary refs log tree commit diff
path: root/tests/ui/impl-trait/in-trait/missing-static-bound-from-impl.stderr
blob: 1f787c1842cf9f82e7b78005962c9a725a985a06 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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 `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

For more information about this error, try `rustc --explain E0310`.